Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: one liner to print out sorted list of word (sort(1))

by maksl (Pilgrim)
on Mar 30, 2003 at 21:06 UTC ( [id://246786]=note: print w/replies, xml ) Need Help??


in reply to Re: one liner to print out sorted list of word (sort(1))
in thread one liner to print out sorted list of word

thx a lot Aristotle for your "_minimalistic_" reply :)
update: second even shorter line with code from dakkar
< file tr [:blank:],[:punct:] '\n' | sort -fu < file tr -cs '[:alnum:]' '\n'|sort -fu
is exactly what i was looking for!!!
never saw the file redirector < on the beginning of a shell command, i use it for things like:
mail -s "test" person@what_ever.org < file

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-06-22 13:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    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.