LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Replace links with Lowercase

[ILUG] Replace links with Lowercase

Jeroen Massar jeroen at unfix.org
Thu Jan 11 13:36:08 GMT 2007


Sonic wrote:
> Hi all,
> 
> I'm currently reading an HTML book but unfortunately it seems to have been written in winblows, i.e. the links are assumed to be case in-sensitive and so most of the images and other links don't work. I have to manually go through the directories to view most of the pages/images. Some of the directories are UPPERCASE yet most of the links to them are lower-case, and vice-versa.
> Does anyone know of a script I can use to go through everything and change all directories/links to lower-case so I can read it without the added hassle?

Option A) Use the original source, where filenames most likely where
          also upper and lowercase mixed.

Option B) Put them on a webserver that ignores case (apache has options
          for that and a lot of other tricks).

Option C) Make a loopback filesystem, a bit larger than the content
          format this with (v)fat/iso9660 and mount it with
          check=relaxed or related option.

Option D) Regex magic, grep for href= img= etc and replace to lowercase.

The other option of course is to ask the author of the book where you
got it to fix it up for you. Option C is in this case the least work.

Greets,
 Jeroen




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell