bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wc can not count very large file


From: Philip Rowlands
Subject: Re: wc can not count very large file
Date: Thu, 7 Oct 2004 12:43:18 +0100 (BST)

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...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]