On Thu, 7 Oct 2004 address@hidden wrote:
find . -name '*.[ch]' -print0 |
xargs -r0 wc -l |
grep -Ev "^[ ]+ [0-9]+ total" |
tr -s ' ' |
cut -f2 -d' ' |
(tr '\n' +; echo 0) |
bc
I name that tune in 3:
find . -type f -name '*.[ch]' -print0 |
xargs -r0 -n1 wc -l |
awk '{total += $1} END {print total}'
Cheers,
Phil
P.S. Is there some slowdown/moderation on this list? My last email I
sent took 14 hours to make it back to my, whereas other threads are
fairly snappy. We'll see on this one, sent at 11:43 GMT...