SED problem
I have multiple html files. I need to remove the same chunk of code from
all of them.
I have made a bash loop to feed the files to sed, but am struggling with
the sed code.
I need to delete all the code between
<!-- lockon:a:1
-->
and
<!-- lockoff
-->
Including the above comments.
I have tried, played with N, d substitution to // but can't pattern
match across multiple lines.
Any ideas ?
Dave
In the HTML I have the following ....
<img src="pngs/whkeepsakebanner.png" title=
"keepsake cards, designers of personalised cards" alt=
"keepsake cards, designers of personalised cards"><br>
</td>
</tr>
<!-- lockon:a:1:
-->
<tr>
<td class="toplinks"><a href="index.html">Home</a>
<a href="aboutus.html">About us</a>
<a href="gallery.html">Gallery</a>
<a href="order.html">Order cards</a>
<a href="pricing.html">Pricing</a>
<a href="contactus.html">Contact
us</a><br>
<a href="faq.html">FAQ</a> <a href=
"sitemap.html">Site map</a> <a href=
"links.html">Specialist Links</a> <a
href="reciplinks.html">Reciprocal Links</a></td>
</tr>
<!-- lockoff
-->
<!-- lockon:a:2:
-->
Reply to: