Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: a way to do 'sort|uniq'

by jch341277 (Sexton)
on Aug 02, 2005 at 16:30 UTC ( [id://480257]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://480257]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-03-29 01:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found