[ale] Simple script question

Mike Murphy mike at tyderia.net
Tue Mar 16 12:42:22 EST 2004


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

seems to work on the absurdly small test directory I created.

Mke


Bridges, Doug wrote:
> I am trying to write a simple script that will recursively give me a line count of all of the files in a directory.  Here is the command I am trying:
> 
> wc -l < cat `find . -type f -name "*"`
> 
> When I do this, I get:
> bash: cat: No such file or directory
> 
> 
> I suspect that some of the files might be too deep, or not exist.  Also, I am doing this on cygwin, I don't know if this is some windows bug creeping in.
> 
> Doug
> 
> 
> 
> _______________________________________________________
> 
> NOTICE:  This e-mail message and all attachments transmitted with it 
> may contain legally privileged and confidential information intended 
> solely for the use of the addressee.  If the reader of this message is not 
> the intended recipient, you are hereby notified that any reading, 
> dissemination, distribution, copying, or other use of this message or its 
> attachments is strictly prohibited.  If you have received this message in 
> error, please notify the sender immediately by telephone 
> (404-881-7000) or by electronic mail (postmaster at alston.com), and 
> delete this message and all copies and backups thereof.  Thank you.
> _______________________________________________________
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale

-- 

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Mike Murphy
781 Inman Mews Drive Atlanta GA 30307
Landline: 404-653-1070
Mobile: 404-545-6234
Email: mike at tyderia.net
Email Pager: pagemike at tyderia.net
AIM: mmichael453
JDAM: 33:45:14.0584N  84:21:43.038W
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+



More information about the Ale mailing list