How to replace, from command-line, the content between <!-- Analytics code start -->
and <!-- Analytics code end -->
of index.html
:
<html> ... <!-- Analytics code start --> ... <!-- Analytics code end --> </body> </html>
by the content of a file, say myanalytics.txt
?
Note: I want to do it by command-line because I need to do it for many files.
<!-- Analytics code start -->
is at the line 4, and<!-- Analytics code end -->
is the line 10. Do you wanna change the lines 4 and 10, or the lines between 4 and 10 ??