Okay. I've just looked up "search a textfile and display search results in a new textfile" and the linked article was the most accurate result, as far as I can estimate the accuracy of an article on that topic.
It just works. Thank you.
I guess I am going to use it with Geektool on my desktop.
Cheers!