in reply to Re: find a string and count of its occurence in a text file
in thread find a string and count of its occurence in a text file

i read that using grep is not advisable for huge files

Someone lied to you.


Maybe lied is a bit strong, they we probably thinking of this:
grep /fred/,<FILE>;
which loads the entire file into memory (or at least, tries to).

Replies are listed 'Best First'.
Re^3: find a string and count of its occurence in a text file
by Anonymous Monk on Nov 14, 2007 at 18:44 UTC
    I thought he meant grep(1) instead of perldoc -f grep    :-)