Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Search and replace in all odd lines

by ranjan_jajodia (Monk)
on Jun 25, 2007 at 10:39 UTC ( [id://623137]=note: print w/replies, xml ) Need Help??


in reply to Search and replace in all odd lines

If you are doing from command line, you can use perl -n -e '<substitute logic> if $.%2>0
Ranjan

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-26 03:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found