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 directory, and display the total of the files in those 3 different directories.

If you want a simple aggregate:


find . -type f | xargs cat | wc -l




-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to