Make a word list from a text

Alexander Smirnov alexander.v.smirnov at gmail.com
Mon Aug 4 12:45:14 UTC 2008


Donn пишет:
> On Saturday, 02 August 2008 05:52:46 Wulfy wrote:
>   
>> I want to take a text file and extract all the words and sort them into
>> a unique list. 
>>     
> I gave it a go and this is the best I can do:
> cat myfile | sed "s/'//g" | tr -s '[:space:][:punct:]' "\n" | sort | uniq -c
>
>
>   
Good! but cat is not necessary.

sed [OPTION]... {script-only-if-no-other-script} [input-file]...





More information about the kubuntu-users mailing list