[CentOS] recursively count the words occurrence in the text files

2010-12-30 Thread S Mathias
I just can't google for it: I'm searching for a bash one liner (awk, perl, or anything) for this: there are text files, in several directories: mkdir one mkdir two mkdir three echo word1 word2 word3 one/asf.txt echo word2 word4, word5 one/asfcxv saf.txt echo word1. word2 one/dsgsdg.txt

Re: [CentOS] recursively count the words occurrence in the text files

2010-12-30 Thread Stephen Harris
On Thu, Dec 30, 2010 at 10:34:58AM -0800, S Mathias wrote: I just can't google for it: I'm a little concerned about the number of schoolbook questions showing on this list, recently. However... echo word1 word2 word3 one/asf.txt echo word2 word4, word5 one/asfcxv saf.txt Yeah, that line

Re: [CentOS] recursively count the words occurrence in the text files

2010-12-30 Thread Mark
On Thu, Dec 30, 2010 at 10:56 AM, Stephen Harris li...@spuddy.org wrote: I'm a little concerned about the number of schoolbook questions showing on this list, recently.  However... I have to wonder why we are doing this fellow's homework for him at all. These are fairly basic exercises in