I have a file1.html:
<!doctype html>
<html>
<head>
</head>
<body>
text
<!-- start-replacing -->
<p>more text1</p>
<p>more text2</p>
<!-- end-replacing -->
other text
</body>
</html>
and a file2.txt
<p>some text</p>
<div>some other text</div>
Now I'm looking for a command to replace everything between
<!-- start-replacing -->
and <!-- end-replacing -->
with the content of file2.txt
the output.html should be:
<!doctype html>
<html>
<head>
</head>
<body>
text
<!-- start-replacing -->
<p>some text</p>
<div>some other text</div>
<!-- end-replacing -->
other text
</body>
</html>