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
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
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
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
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
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
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,
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 /
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
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
10 matches
Mail list logo