I want to remove comment tags in an html file.
<!--- <script save and execute me> -->
must become:
<script save and execute me>
I tried
sed -i s_^<!-- \(.*\) -->$_\1_ text.sed
but that fails because the < and > are considered to be read in/out characters. I than tried:
sed -i 's_^<!-- \(.*\) -->$_\1_' text.sed
but than the \1 is not evaluated as it should. Hopefully somebody here has ideas?
regards, Jeroen.