recursively count the words occurrence in the text files

Joe Zeff joe at zeff.us
Thu Dec 30 22:51:24 UTC 2010


On 12/30/2010 02:20 PM, Aaron Konstam wrote:
> On Thu, 2010-12-30 at 10:34 -0800, S Mathias wrote:
>> >  I just can't google for it:
>> >
>> >  I'm searching for a "bash" "one liner" (awk, perl, or anything) for this:
>> >
> Attached is a python program that counts the number of words in a file.
> This could easily be slightly altered and combined with find to do what
> you want.

Or, if you don't want to reinvent the wheel, you can just use the 
standard Unix program, wc.


More information about the users mailing list