Is there a shell script that runs on a mac to generate a word list from a text file, listing the unique words? Even better if it could sort by frequency….
sorry forgot to mention, yeah i prefer a bash one as i’m using mac now…
oh, my file is in french… (basically i’m reading a novel and learning french, so i try to generate a word list help myself). hope this is not a problem?
This command will do
Here
sort -uwill not work on Macintosh machines. In that case usesort | uniq -cinstead. (Thanks to Hank Gay)