[Tutor] searching out keywords...

alan.gauld@bt.com alan.gauld@bt.com
Fri, 8 Mar 2002 18:26:29 -0000


> I have to monitor some hefty (min 40MB) log files. I have a 
> list of keywords that I want to search for and then write 
> those lines out to a different file. Basically I want to do this.

Its always fun writing stuff in Python, but I'd have thought 
the easiest and fastest way to do this was egrep...

C:\> egrep 'keyword1|kywrd2' logfile.txt > results.txt

Just a thought...

Alan g.