Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: what regular expression do I need?

by tbone654 (Beadle)
on Apr 19, 2013 at 04:33 UTC ( #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
Node Status?
node history
Node Type: note [id://1029454]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2014-12-27 21:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls