Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 imbibing at the Monastery: (4)
As of 2014-09-23 03:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls