Home » Questions » Computers [ Ask a new question ]

How to count the number of occurrences of each word in a file?

How to count the number of occurrences of each word in a file?

I need a program to count the number of words along with number of occurrences of each word in a file.

Asked by: Guest | Views: 76
Total answers/comments: 4
Guest [Entry]

The free online service Wordcounter ranks the most frequently used words in any given body of text. Use this to see what words you overuse or maybe just to find some keywords from a document.
Guest [Entry]

"This is very easy. Just use the following command:

sort file.txt | uniq -c | sort -r"
Guest [Entry]

Both MS Office and OpenOffice have this feature. Go to tools/word count.
Both MS Office and OpenOffice have this feature. Go to tools/word count.
Guest [Entry]

If you were using Windows, you could use Atlantis word processor. It's got loads of great little features and touches including one to hi-light the overuse of words.