Hi, why not awk (it is not awkward...) Regards, Imre +-----------------------------------------------------------------------+ | The information transmitted is intended only for the person or entity | | to which it is addressed and may contain confidential and/or | | privileged material. Any review, retransmission, dissemination or | | other use of, or taking of any action in reliance upon, this | | information by persons or entities other than the intended recipient | | is prohibited. If you received this in error, please contact the | | sender and delete the material from any computer. | +-----------------------------------------------------------------------+ On Sun, 22 Jul 2001, wouter van ooijen & floortje hanneman wrote: > > > I need a program to count the occurrence of each separate word in a > > > document. > > Using the right tool (tcl, python) this should be a one-banana trick. Even > in plain C (using hashing) it should not be that difficult, provided that > the total number of different words is not too large (let's say less than > 100k). > > Wouter > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics > > > -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.