Hi,
I have a file which has the following tags in it:
####STARTTAG######
(Then 40 lines of whitespace)
####ENDTAG########
What I would like to do (using sed) is to insert a another (variable length) file between these two tags.....
I have read examples and manuals unil i'm blue in the face but I can't find a solution to this fairly simple situation....
Please help!
Thanks
---------- Post updated at 11:33 AM ---------- Previous update was at 10:59 AM ----------
I found a solution:
sed '/STARTTAG/r "file to insert"' < "tagfile" >"tagfile.mod"