in reply to one liner to print out sorted list of word
Why is everyone trying to reinvent the wheel?
That takes care of lines. To change the interpretation of what a line is, use tr(1), f.exsort -u file # case sensitive sort -fu file # insensitive
Shell still excels at really simple things it has dedicated tools for. Perl beats it if you want to do something there's no exactly matching tool for.< file tr [:blank:] '\n' | sort -fu
Makeshifts last the longest.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: one liner to print out sorted list of word (sort(1))
by Anonymous Monk on Mar 30, 2003 at 21:27 UTC | |
by Aristotle (Chancellor) on Mar 30, 2003 at 21:30 UTC | |
by maksl (Pilgrim) on Mar 31, 2003 at 07:45 UTC | |
Re: Re: one liner to print out sorted list of word (sort(1))
by maksl (Pilgrim) on Mar 30, 2003 at 21:06 UTC |
In Section
Seekers of Perl Wisdom