Not a useless use of cat after all. :) cat concatenates the files into a single stream, which is exactly what one needs in order to get a total count over all the files.% cat tmp1 llama camel % cat tmp2 camel gecko % cat tmp1 tmp2 | grep -hc camel 2 % grep -hc camel tmp1 tmp2 1 1 %
In reply to Re: Re: sum of counts from unix grep -c
by chipmunk
in thread sum of counts from unix grep -c
by sacked
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |