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 )
Use "egrep -i", and make sure you have "LANG=C" in the environment (or
equivalent). Doing case-insensitive Unicode matches is likely much more
painful than ASCII matches.
--
Viktor.
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:[email protected]?body=unsubscribe%20postfix-users>
If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.