I offer:
Use single quotes if you are on Linux.perl -anE "$h{$F[0]}++}{say qq|$_ appeared $h{$_}| for sort keys %h" +*YOUR-FILE*
Time is an illusion perpetrated by the manufacturers of space.
In reply to Re^3: Count of patterns in a file without knowing pattern in advance
by NetWallah
in thread Count of patterns in a file without knowing pattern in advance
by cklatsky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |