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

Re: I need "Antigrep"

by gasho (Beadle)
on Aug 15, 2006 at 19:46 UTC ( [id://567542]=note: print w/replies, xml ) Need Help??


in reply to I need "Antigrep"

Try this
#Unix # Example 2: grep for lines that do not match the supplied regexp expr +essions [gasho:~]$ echo ' cat dog mouse horse' | grep -v -e 'mouse' -e 'dog' cat horse #Perl @filenames = qw(cat dog mouse horse); @donotmatch = grep {!(/cat/||/horse/)} @filenames;
(: Life is short enjoy it :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-03-28 15:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found