Re: recursive word count (wc)

2003-07-13 Thread Benjamin J. Weiss
Okay, but this works: for x in `find . -name \* -print`; do echo $x; cat $x | wc -l; done Ben - Original Message - From: Gordon Messmer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 12, 2003 10:23 PM Subject: Re: recursive word count (wc) fred smith wrote: On Fri, Jul

Re: recursive word count (wc)

2003-07-13 Thread Tao Chen
find . -type f | xargs cat | wc -l Why 'cat' ? find . -type f | xargs wc -l -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list

Re: recursive word count (wc)

2003-07-13 Thread Gordon Messmer
Tao Chen wrote: find . -type f | xargs cat | wc -l Why 'cat' ? find . -type f | xargs wc -l Just to be succinct. If you want the line count of each file, in addition to the line count of all of the files, then that will also work. -- redhat-list mailing list unsubscribe mailto:[EMAIL

Re: recursive word count (wc)

2003-07-12 Thread Gordon Messmer
Mike McMullen wrote: Brute force would be cat */* | wc ... which doesn't recurse, and so fails the requirements of the poster. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list

Re: recursive word count (wc)

2003-07-12 Thread Gordon Messmer
fred smith wrote: On Fri, Jul 11, 2003 at 11:51:22AM -0400, Reuben D. Budiardja wrote: Hello, Just a quick question, wondering if somone can help. How do I do recursive word / line count using 'wc'? What I mean, eg if I have 3 directories in the current directory, I want wc to go inside each

recursive word count (wc)

2003-07-11 Thread Reuben D. Budiardja
Hello, Just a quick question, wondering if somone can help. How do I do recursive word / line count using 'wc'? What I mean, eg if I have 3 directories in the current directory, I want wc to go inside each directory, cound the line / words for all the files in each directory, and display the

Re: recursive word count (wc)

2003-07-11 Thread Mike McMullen
Brute force would be cat */* | wc Mike - Original Message - Hello, Just a quick question, wondering if somone can help. How do I do recursive word / line count using 'wc'? What I mean, eg if I have 3 directories in the current directory, I want wc to go inside each directory,

Re: recursive word count (wc)

2003-07-11 Thread Bret Hughes
On Fri, 2003-07-11 at 10:51, Reuben D. Budiardja wrote: Hello, Just a quick question, wondering if somone can help. How do I do recursive word / line count using 'wc'? What I mean, eg if I have 3 directories in the current directory, I want wc to go inside each directory, cound the line /

Re: recursive word count (wc)

2003-07-11 Thread Gordon Messmer
Reuben D. Budiardja wrote: Just a quick question, wondering if somone can help. How do I do recursive word / line count using 'wc'? What I mean, eg if I have 3 directories in the current directory, I want wc to go inside each directory, cound the line / words for all the files in each

Re: recursive word count (wc)

2003-07-11 Thread fred smith
On Fri, Jul 11, 2003 at 11:51:22AM -0400, Reuben D. Budiardja wrote: Hello, Just a quick question, wondering if somone can help. How do I do recursive word / line count using 'wc'? What I mean, eg if I have 3 directories in the current directory, I want wc to go inside each directory, cound