Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Search and replace in all odd lines

by ranjan_jajodia (Monk)
on Jun 25, 2007 at 10:39 UTC ( #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? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2023-09-23 23:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?