[Tutor] searching out keywords...
Sean 'Shaleh' Perry
shalehperry@attbi.com
Fri, 08 Mar 2002 10:13:25 -0800 (PST)
On 08-Mar-2002 Kirby Urner wrote:
> At 06:43 PM 3/8/2002 +0100, Javier JJ wrote:
>
>>So, if performance is important, I'd say you'd be better off using something
>>as simple as (on a command line)
>>
>> cat log_fie | grep keyword > badwords_file
>>
>>This is much faster :-)
>
> That's a good point. If you have an OS that already includes
> a lot of utilities like this, you don't have to code up a
> Python thing, let alone slap a GUI over it. Life at the
> OS command line is sooo much simpler.
>
True, although you then lose flexibility. Like your idea of printing a status
every few 100 lines.