in reply to Re: Pulling by regex II
in thread Pulling by regex II

Thanks, I totally missed the error problem, thanks for pointing it out. Would going through the log one line at a time be more efficient?

Replies are listed 'Best First'.
Re^3: Pulling by regex II
by tadman (Prior) on Dec 14, 2002 at 23:26 UTC
    If you have a 2GB log file, you can imagine that reading the whole thing into memory isn't going to be terribly efficient. Processing it one line at a time is virtually a must.

    Unless you need to read in the whole file because it's not terribly large and you will be refering to it several times, it is almost always better to pick through it one line at a time.