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.
In reply to Re^2: new line every match
by aaron_baugher
in thread new line every match
by starface245
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |