Save as text file, and run this awk script on it from command line (gawk -f <scriptfile> <filename.txt>):

----------
 # Print list of word frequencies
     {
         for (i = 1; i <= NF; i++)
             freq[$0]++
     }

     END {
         for (word in freq)
             printf "%s\t%d\n", word, freq[word]
     }

--------------

To get better results you could remove all punctuation by simple search and replace before saving as a text file. An extension would be easy to write but a nightmare in a language without hash tables as used in awk.

Best
Marcin


Harold Fuchs pisze:
Is there an extension (or other software) that will produce a word frequency table in Writer (2.4.1 or 3.x)? Where, please? Note: I do not mean a word count but a list of the number of times each word is used in a document.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to