Print all the words in a targeted file, sorted from most to least frequent.
wordMine README.md
prints to console: Counter({'file':5, 'words':4, 'text':4, 'wordmine':2,...})
Filters out common words like, 'the', 'when'...
-
Clone the git repository into a folder of your choice.
-
Enter the folder and
chmod +x wordMine.sh
-
Edit this config file:
~/.bashrc
-
Create a binding to the wordMine script:
alias wordMine='~/wordMine/wordMine.sh'
-
After editing, refresh your bash config:
source ~/.bashrc
Now run:
wordMine <anyFile.txt>