I have files like:
text2insert
filewithpattern
and also known:
template
How can I insert rows from text2insertin filewithpattern, but after a row pattern?
Using bash 2.05b
UPDATE: Before filewithpatternshould look like this:
trash
pattern1
pattern2
trash
and after:
garbage
pattern1
text2insert lines
text2insert lines
text2insert lines
pattern2
garbage
source
share