Mixed Case Directory Names

Rejean Proulx rejean at interfree.ca
Tue Nov 11 20:20:23 EST 2003


It still doesn't work. I put that if error handling stuff at the beginning
and it just finishes without errors.  It doesn't give me an error if I don't
put in a directory name.

 Rejean Proulx
Visit my family at http://interfree.ca
MSN is: rejp at rogers.com
Ham License VA3REJ

----- Original Message ----- 
From: "Luke Davis" <ldavis at shellworld.net>
To: <Speakup at braille.uwo.ca>
Sent: Tuesday, November 11, 2003 12:57 AM
Subject: Re: Mixed Case Directory Names


> This is untested, but Try this:
>
> #!/bin/sh
> if [ -z $1 ]; then
> echo "You didn't specify a directory!";
> exit 1;
> elif [ -d $1 ]; then
> tf=/tmp/renamer.$$;
> rm -f $tf;
> ls *[A-Z]* | awk '{print "mv", $1, tolower($1)}' > $tf;
> source $tf;
> exit 0;
> else echo "$1 is not a directory!";
> exit 2;
> fi
>
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup





More information about the Speakup mailing list