I need a program to count the number of words along with number of occurrences of each word in a file.
(Most of the examples I found only count the total number of words.)
|
I need a program to count the number of words along with number of occurrences of each word in a file. (Most of the examples I found only count the total number of words.)
| |||||||
feedback
|
|
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. | ||||
|
feedback
|
|
If using the command line (or a script) is fine, then there's a million options. Like by using Perl (for Windows you would need to install ActivePerl or Cygwin with Perl):
| |||||||||||
feedback
|
|
This is very easy, just use the following command: sort file.txt | uniq -c | sort -r | |||
feedback
|
|
Both MS Office and OpenOffice have this feature. Go to tools/word count. | |||
|
feedback
|
|
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. | |||
|
feedback
|