I was generalizing the construct - I usually do something like:
$ tail +2 file.txt|tr -dc '[0-9\n]'|sort|uniq -c|sort -rnk 1
I realize that the 'cat' would be useless in the simplified example that I gave, but the point was I wanted a way to do that same type of thing all in one step with perl.
In reply to Re^2: a way to do 'sort|uniq'
by jch341277
in thread a way to do 'sort|uniq'
by jch341277
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |