Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: sum of counts from unix grep -c

by chipmunk (Parson)
on Jan 18, 2002 at 19:23 UTC ( #139834=note: print w/replies, xml ) Need Help??


in reply to Re: sum of counts from unix grep -c
in thread sum of counts from unix grep -c

% cat tmp1 llama camel % cat tmp2 camel gecko % cat tmp1 tmp2 | grep -hc camel 2 % grep -hc camel tmp1 tmp2 1 1 %
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.

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
      "files" is plural.
      No indication whatsoever, except that "files" is plural.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://139834]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2020-01-21 05:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?