Mixed Case Directory Names

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
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





[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux