laziness, impatience, and hubris | |
PerlMonks |
Re: Search and replace in all odd linesby ranjan_jajodia (Monk) |
on Jun 25, 2007 at 10:39 UTC ( [id://623137]=note: print w/replies, xml ) | Need Help?? |
If you are doing from command line, you can use perl -n -e '<substitute logic> if $.%2>0
Ranjan
In Section
Seekers of Perl Wisdom
|
|