cut and pasted from http://portico.org I did a search for "lowercase"
There is a problem when you migrate web pages from NT to Apache: The filenames
are in a wide range of letter cases. Example: "hello.gif"
can be "HeLlo.GIF" on an NT server.
Your apache can't show this gif if it isn't exactly named "HeLlo.GIF". The first
thing to do in order to solve it is convert all filenames to
lowercases. The following bash script makes it easy. Only copy and paste it onto
a file named "minus" and give execute permisions. Make
the script available system-wide and execute it in every dir that you want to
convert.
#!/bin/sh
export name=""
export namelow=""
ls > dirtmp.txt
cat dirtmp.txt|while read name
do
namelow=`echo $name|tr A-Z a-z`
if [ "$name" != "$namelow" ]
then
echo "Renaming $name to $namelow"
mv $name $namelow
fi
done
rm dirtmp.txt
On Tue, 04 Apr 2000 16:12:28 CDT
"K Old" <[EMAIL PROTECTED]> wrote:
# Hello,
#
# I was wondering if there was a way to rename files in Linux that are upper
# case to the same name only in lower case?
#
# I have about 400 files that were renamed to upper case when I FTP'ed them to
# the server and I need a quick way to make them lower case.
#
# If anyone can offer any help I would appreciate it.
#
# Thanks,
# Kevin
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.