Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 about the Monastery: (5)
As of 2024-09-13 04:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (17 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.