Dado um arquivo, test.html, contendo:
<html>
<!--- <script save and execute me> -->
</html>
O comando:
sed -e "s/<!---* *<\(.*\)> *-->/<>/" test.html
emite:
<html>
<script save and execute me>
</html>
Esteja ciente de que isso também transformaria:
<html>
<!-- some info explaining why we have commented out the following -->
<!-- <hr> -->
<!--- <script save and execute me> -->
</html>
em:
<html>
<!-- some info explaining why we have commented out the following -->
<hr>
<script save and execute me>
</html>