[EMAIL PROTECTED] wrote: > >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?
I think a *slightly* better method is to use: wc -l *.c ;-) -- Cheers, Bernard _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"