Andrew Gaffney ([EMAIL PROTECTED]) wrote: > I need to strip out the string ' width="51" height="20"' from about 50 HTML > documents. Is there a simple way to do this with a bash/sed or perl > one-liner?
assuming all the files are in the same directory ... perl -pi -e's/ width="51" height="20"//ig' *.html or even ... find . -name '*.html' -print | xargs perl -pi -e's/ width="51" height="20"//ig' *.html to find all the html files in the current directory (and sub-directories). -- Jon Willoth [EMAIL PROTECTED] -- [EMAIL PROTECTED] mailing list
