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