Thierry Blanc Thierry.Blanc@gmx.ch [sed-users]
2016-12-18 22:02:29 UTC
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]
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]