in reply to Re^2: Count of patterns in a file without knowing pattern in advance
in thread Count of patterns in a file without knowing pattern in advance
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Count of patterns in a file without knowing pattern in advance
by roho (Bishop) on Jun 14, 2019 at 13:21 UTC | |
by hippo (Archbishop) on Jun 14, 2019 at 13:41 UTC | |
by haukex (Archbishop) on Jun 14, 2019 at 13:37 UTC |