Count words in a file, and list them in descending order in Windows Console.
- Download exe file.
- Copy to
C:\Program_Files\Scripts
.- Add
C:\Program_Files\Scripts
toPATH
environment variable.
ewordcount [-p <regex pattern>] <source file>
:: -p : specify regex pattern for items/words to be counted
:: (e.g. -p gl\w+, to look for gl calls in adb logs)
:: Get all words count
ewordcount ideas.txt
: (word counts are displayed)
:: Get all words count to file
ewordcount project.txt > project-count.log
: (word counts stored in "project-count.log")
:: Get Specific words count
ewordcount -p gl\w+ adb.log > adb-count.log
: (counts of word starting with "gl" is only stored)