You've already received some great answers. However, they all assume that you're searching a particular log file only once. On the off chance you need to search repeatedly through the log file(s), though, you may want to alter your strategy. You might:
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: Parsing Large Text Files For Performance
by roboticus
in thread Parsing Large Text Files For Performance
by bigbot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |