On Thu, 7 Oct 2004 [EMAIL PROTECTED] 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...


_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to