perl -p00 -le '$_.="\npara2 NEW STUFF" if /^para2/' filename
In reply to Re: one liner append line(s) to matched paragraph
by shmem
in thread one liner append line(s) to matched paragraph
by PeteInPDX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |