in reply to Re^2: How to duplicate lines
in thread How to duplicate lines

Change the code given above to:

perl -pe'$_ .= $_, s/252$/100/  if /^ip address/'