On Tue, 30 Dec 2003 10:14:26 -0600 Andrew Gaffney
<[EMAIL PROTECTED]> wrote:
| Although, there is one case this doesn't work for. In some of the HTML
| files, the text I'm looking to strip is split over 2 lines like:
| 
| <a href="someurl"><img src="button.gif" border="0" width="51"
|          height="20"></a>
| 
| How would I strip the text in this case?

find . -name '*.html' -exec perl -pi.bak -e '$/="";' -e \
  's- width="51"\s+height="20"--g' '{}' \;

-- 
Ciaran McCreesh
Mail:    ciaranm at gentoo.org
Web:     http://dev.gentoo.org/~ciaranm

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to