[wplug] case utility

Greg Akins gakins at insomnia-consulting.org
Tue Apr 5 10:56:12 EDT 2005


Quoting "Petrucci, Joseph" <Joseph.Petrucci at ddiworld.com>:

> I have used scripts something like this in the past. The only problem is it
> changes all test on the html pages to lower case also. I don't have time to
> write one that takes the names of files only and changes references to them
> to lowercase I believe you could use sed easily for this.
> 

I did a pretty large site a year ago by using a linkchecker (can't remember
which one, but am pretty sure there is a FOSS one for Linux and Windows)

I changed the filenames manually when the link checker found an error and it
only took a couple hours.

However it might not be too hard to write a script that takes the output from
the linkchecker, makes sure a matching (case-insensitive) file exists, and then
search and replace through all the webfiles to fix the name.

Of course, parseing html to look for <a href> and <img> to get all file names
and doing the same thing might not be much more difficult.

But you'd really need to check for filenames in javascript also?  

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/


More information about the wplug mailing list