=== remove single line comment
eg: <!-- -->
sed -i '/<!--.*-->/ d' file
=== remove multiple lines of comments
eg:
<!--
abc
def
-->
sed -i '/<!--/,/-->/ d' file
Note: the , implied the multiple lines.
=== remove single line comment
eg: <!-- -->
sed -i '/<!--.*-->/ d' file
=== remove multiple lines of comments
eg:
<!--
abc
def
-->
sed -i '/<!--/,/-->/ d' file
Note: the , implied the multiple lines.