I'd prefer Marshall's approach of using a grep-like utility if you have one, but if not:
c:\@Work\Perl\monks>grep -c "xms;$" elide_lines.pl.bak 2 c:\@Work\Perl\monks>perl -ne "BEGIN { $AP = shift } $n++ if /$AP/; END + { print $n }" "xms;$" elide_lines.pl.bak 2
Give a man a fish: <%-{-{-{-<
In reply to Re: Calling perl from zsh w/ vars
by AnomalousMonk
in thread Calling perl from zsh w/ vars
by k-man
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |