Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Delete strings

by ikegami (Patriarch)
on Apr 10, 2009 at 08:13 UTC ( #756769=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -ne"print if $f ||= /1\.0/" infile >outfile
    
  2. or download this
    perl -i.bak -ne"print if $f ||= /1\.0/" file
    
  3. or download this
    perl -ne'print if $f ||= /1\.0/' infile >outfile
    
  4. or download this
    perl -i~ -ne'print if $f ||= /1\.0/' file
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2023-11-30 04:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?