On Sun, Jan 04, 2009 at 08:33:12PM +0530, Ramprasad wrote: > > My logfiles are approx 1.5 GB each, if we rotate twice a day > grep sender.*recipient $logfile is really much much faster than grep > -i sender.*recipient $logfile > IMHO grep would not count as lousy code ( on linux )
And are you sure you tested this scientifically with multiple runs? OS cache might play a factor there.