in reply to Re: a way to do 'sort|uniq'
in thread a way to do 'sort|uniq'

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.