sed r option | insert file

"Thierry Blanc [email protected] [sed-users]" <[email protected]> Mon, 19 Dec 2016 01:32:29 +0330
Newsgroups gmane.editors.sed.user
Message-ID <[email protected]>
I try to insert a textblock saved in a file (file1.txt) into another
file (file2.txt). File 2 is an rdf file.

file 1 should be inserted into a block and replace the content of the block.

sed -r '
/<RDF:Seq RDF:about="urn:scrapbook:item20161219002711">/,/<\/RDF:Seq>/{

r file1.txt

}' file2.txt

The strange thing is that is only inserts 114 lines, then the block end
appears. After that the same  114 are lines are printed again.

I am not on drugs ...
???

 




[Non-text portions of this message have been removed]