Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: one liner to print out sorted list of word

by MrYoya (Monk)
on Mar 26, 2003 at 18:39 UTC ( [id://246039]=note: print w/replies, xml ) Need Help??


in reply to one liner to print out sorted list of word

Here's one way, it's case sensitive:
perl -e 'open(FILE, $ARGV[0]); print sort <FILE>' text
Also, try |sort|uniq to get rid of duplicate entries.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 08:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found