[SpamCop-List] Re: BUG: Mozilla and font tags

Chris Abbey spamcop-list
Wed, 21 Feb 2001 22:37:12 -0600


Bob W. wrote:

> Thing is, some of the sites were done in 1995, and coded by hand, well 
> before fancy-schmancy visual editors... Ain't no DTD specified in them 
> thar pages.  <g>
> 
> Looks like I may eventually have to go back and do a little 
> retrofitting...

nah, I had a similar problem a few months ago, in my case 1193
documents without a single dtd specifier in the whole mess.
The following posix script had it all cleaned up in under an
hour without affecting the production server too much...

find /html -iname \*html ! -type d -exec mv {} /tmp/fixme && \
  cp /tmp/dtdspec {} && cat /tmp/fixme >> {} \;

In reality I think I had to use a seperate script for
the exec step... not sure, but it gives you the idea...
all you need is a posix shell. I had originally started
with it detecting if the file had a dtd already, but a quick
rgrep told me there weren't any at all so I didn't bother.

> Another one of the lovely things about standards.  <g>

:) but there are SO many to choose from....