in reply to
one liner append line(s) to matched paragraph
perl -pe '$n = 1 if /^para2/; print "para2 NEW STUFF\n" if $n && /^$/;'
seems to do the trick for me. HTH.
Comment on
Re: one liner append line(s) to matched paragraph
Download
Code
In Section
Seekers of Perl Wisdom