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)
In reply to Re: how to search for a string in large file?
by oiskuu
in thread how to search for a string in large file?
by littlemonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |