in reply to how to search for a string in large file?
Though this might not cover them all. Should "foof" match "foofoof" once or twice?perl -ne '$n += () = /foo/g }{ print $n' <(< large.txt fgrep foo)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: how to search for a string in large file?
by littlemonk (Sexton) on Mar 18, 2014 at 18:55 UTC |