Hello. How to count the number of lines in all *.c file in a directory?

I can think of this on csh:

grep -c "" `find . -name "*.c"` | sed "s/.*:/e=e+/" > /tmp/countlines.py

And edit the py file, and "e=0" as first line, "print e" as the last line, and execute the python script. wooo pretty cool for a newbie like me:)

So is there a better method?

享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com

[EMAIL PROTECTED] mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to