perl -ne "$h{$c=$1}=0 if m/^([\w\s]+pool)$/;m/^\d{6}\s+\w{4}/ and $h{$ +c}++;END{print qq|$_\t$h{$_}\n| for sort keys %h}" FILENAME
Syntactic sugar causes cancer of the semicolon. --Alan Perlis
In reply to Re: How to generate a report based on keyword?
by NetWallah
in thread How to generate a report based on keyword?
by perl_newbie99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |