"David Douthitt" <DDouthitt / cuna.com> writes:

> I have a set of programs which I was trying to get working on a HUGE
> file (system logs), and found that replacing a scan through the
> system logs for lines containing a particular string, that 'grep'
> was *MUCH* quicker than Ruby - but that is probably not a good
> comparison, eh?

Grep will definitely out-perform Ruby for this as it is optimized for
just this job, and contains many specific heuristics to help it go
fast. However, Ruby generates beer drinking songs faster than grep, so 
I guess it's a draw.


Dave