Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by chipmunk (Parson)
on Jan 18, 2002 at 19:23 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://139834]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-19 03:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found