Re: Search and replace in all odd lines
by
ranjan_jajodia
on
Jun 25, 2007 at 10:39 UTC
(
replies
)
http://qs1969.pair.com?node_id=623137
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
In Section
Seekers of Perl Wisdom