in reply to Re: sum of counts from unix grep -c
in thread sum of counts from unix grep -c
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 %
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: sum of counts from unix grep -c
by merlyn (Sage) on Jan 18, 2002 at 19:26 UTC | |
by tilly (Archbishop) on Jan 19, 2002 at 02:59 UTC | |
by thor (Priest) on Jan 28, 2002 at 11:17 UTC |