in reply to Re: new line every match
in thread new line every match

Then I would describe the process as:

So that would give me this code, which you can wrap in whatever input/output you need to do once you understand it:

while(<>){ if(/^address/){ s/ address/\naddress/g; print; } else { print; } }

Aaron B.
Available for small or large Perl jobs; see my home node.