Tuesday, August 17, 2010

How to output a word-frequency list of the text file

To output a word-frequency list of the text file 'words', type:

$ tr ' ' ' [RET]
> ' < words | sort | uniq -c [RET]