Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: I need "Antigrep"

by imp (Priest)
on Aug 15, 2006 at 18:25 UTC ( [id://567531]=note: print w/replies, xml ) Need Help??


in reply to I need "Antigrep"

grep -c something * | awk -F : '$2 == 0 {print $1}'
This approach counts the number of occurences of that string in the files matched by *, and has awk print out the matches where that number is 0.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-20 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found