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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="aboutus.html">About us</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="gallery.html">Gallery</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="order.html">Order cards</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="pricing.html">Pricing</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="contactus.html">Contact
us</a><br>
<a href="faq.html">FAQ</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href=
"sitemap.html">Site map</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href=
"links.html">Specialist Links</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
href="reciplinks.html">Reciprocal Links</a></td>
</tr>


<!-- lockoff -->
<!-- lockon:a:2:
-->





--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Reply via email to