Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: what regular expression do I need?

by tbone654 (Beadle)
on Apr 19, 2013 at 04:33 UTC ( [id://1029454]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    cat file1 | perl -e 'while(<>){ next if !/IMO/; print $_;}'
    
  2. or download this
    cat file1 | perl -e 'while(<>){ next if !/\bIMO/; print $_;}'
    
  3. or download this
    cat file1 | perl -e 'while(<>){ next if !/\bIMO/i; print $_;}'
    
  4. or download this
    vi file2
    apple
    ...
    banana
    
    grep -f file2 file1
    

Log In?
Username:
Password:

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

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

    No recent polls found