perl -n -e '$count++ if /^REGEX/;}END{print "$count\n";' FILENAME
And, yes, 55mb will blow out a 3G+ RAM. You should expect a 10-1 to 20-1 increase in memory usage over disk size. This is Perl ...
In reply to Re: Pimp My RegEx
by dragonchild
in thread Pimp My RegEx
by heathen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |