in reply to Pimp My RegEx
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 ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pimp My RegEx
by Roy Johnson (Monsignor) on May 31, 2005 at 18:50 UTC | |
by dragonchild (Archbishop) on May 31, 2005 at 18:52 UTC |