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 / 
> words for all the files in each directory, and display the total of the files 
> in those 3 different directories.
> 
> Any help ?
> 

how bout 

wc /path/to/dir1/* /path/to/dir/* /path/to/dir3/*.|tail -1


hth

Bret


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

Reply via email to