Дана 24/07/13 02:18AM, Pontus Stenetorp написа:
> Always used:
> 
>       wc -l $(find vim90 -name '*.[ch]')
> 
> Which gives roughly the same *rough* estimate: 516,321.
> 
> I take it you have that function for cases where the number of files 
> is very large and would not fit the buffer for your shell?

No, I use the version I listed because I can format the output as I see 
fit, and it gives per-file statistics.


> You can also 
> group your wc(1) calls by using + as your terminator instead of \;.

I know of that. Directories I run this function in usually don't have 
that many files for the "overhead" of exec'ing another wc is 
significant.

Reply via email to