[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Upper Case
- Subject: Re: [cobalt-users] Upper Case
- From: "N|ghtHawk" <nighthawk@xxxxxxxxxxxxxxxxxx>
- Date: Tue Apr 2 17:23:05 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
You coul write a little script which changes the uppercase to
lowercase. Like:
#!/usr/bin/perl -w
opendir (CUR,".") || die "Can't read dir";
while ($up = readdir(CUR)) {
$low = $up;
$low =~ y/A-Z/a-z/;
if ($up ne "low.pl" && $up ne "." && $up ne "..") {
rename("$up","$low") || die "Can't rename files: $!";
}
}
Example:
[hawk@liquid cobalt]$ ls
AAP JET low.pl MIES NOOT PIM ZUS
[hawk@liquid cobalt]$ ./low.pl
[hawk@liquid cobalt]$ ls
aap jet low.pl mies noot pim zus
This could also be done in shellcode (but that took me longer then
writing a perlscript).
This script would prolly be not enough for you, because it only
changes the currentdir, but it is just an example.
Thijs Bosschert
http://www.outerbrains.nl
-----Oorspronkelijk bericht-----
Van: Richard Sidlin <dns@xxxxxxxxxxxxxxxxx>
Aan: Cobalt List <cobalt-users@xxxxxxxxxxxxxxx>
Datum: woensdag 3 april 2002 8:29
Onderwerp: [cobalt-users] Upper Case
>One of my customers has provided me with a 60MB website that I have
>already uploaded. Problem appears to be upper case. When I changed
>index.html to lowercase, this page appeared but it can't link to the
>other pages in uppercase. Is there a simple way out of this?
>
>________________________________________
>Richard Sidlin
>Director Technical Services
>Quarryhouse Systems Limited
>6 Shenley Road
>BOREHAMWOOD
>Hertfordshire
>WD6 1DL
>
>t: 020 8207 0004
>f: 020 8905 1610
>mailto:richard@xxxxxxxxxxxxxxxxx
>
>
>
>_______________________________________________
>cobalt-users mailing list
>cobalt-users@xxxxxxxxxxxxxxx
>To Subscribe or Unsubscribe, please go to:
>http://list.cobalt.com/mailman/listinfo/cobalt-users