PeteInPDX has asked for the wisdom of the Perl Monks concerning the following question:
data ------------------------- para1 foo bar para1 some stuff para2 other stuff para2 foo bar para3 this is enough ------------------------- if paragraph's lines start with para2, then append new line(s) to that paragraph desired ------------------------- para1 foo bar para1 some stuff para2 other stuff para2 foo bar para2 NEW STUFF para3 this is enough ------------------------- going nuts with trying to set -F to \n\n or using -00
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: one liner append line(s) to matched paragraph
by hippo (Archbishop) on Aug 25, 2015 at 23:01 UTC | |
Re: one liner append line(s) to matched paragraph
by shmem (Chancellor) on Aug 26, 2015 at 06:32 UTC | |
Re: one liner append line(s) to matched paragraph
by 1nickt (Canon) on Aug 25, 2015 at 23:11 UTC |