Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: Case Sensitivity in Linux Server

Mitja wrote:
> Roy Schestowitz <newsgroups@schestowitz.com> wrote:
> 
>> Is there a script that renames all directories and files to pure  
>> lowercase and then changes all links in the files appropriately?
> 
> That's pretty basic so I doubt there's a script for it. To rename the  
> files to lowercase (in bash):
> for $fn in `find -name '*.html' | sort -r`; do mv $fn `echo $fn | tr  
> [:upper:] [:lower:]`; done

But that doesn't update the links. For that you'll probably want to do a
bit of Perl regexp stuff.

-- 
Toby A Inkster BSc (Hons) ARCS
Contact Me  ~ http://tobyinkster.co.uk/contact


[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index