From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from cpe002078d3b1ec-cm400045879001.cpe.net.cable.rogers.com ([24.102.187.22] helo=.interfree.ca) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1AJOfU-0001BA-00 for ; Mon, 10 Nov 2003 21:54:13 -0500 Received: from gate ([192.168.1.1] helo=M019005) by .interfree.ca with smtp (Exim 3.35 #1 (Debian)) id 1AJOfD-0000Ce-00 for ; Mon, 10 Nov 2003 21:53:55 -0500 Message-ID: <000901c3a7ff$13567c80$6901a8c0@ism.can.ibm.com> From: "Rejean Proulx" To: "Speakup is a screen review system for Linux." References: <00bd01c3a7e7$87307650$6901a8c0@ism.can.ibm.com><00cf01c3a7ec$ea57f820$6901a8c0@ism.can.ibm.com> Date: Mon, 10 Nov 2003 21:54:07 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Re: Mixed Case Directory Names X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.3 Precedence: list Reply-To: "Speakup is a screen review system for Linux." List-Id: Speakup is a screen review system for Linux. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Nov 2003 02:54:13 -0000 Thanks, I trust you, but I'm making a copy of this stuff and then I'll run it. Seriously, I wouldn't mind asking you questions about this script. I know that you are storing an ls of the files. but I'm not quite sure how the rest of the thing works. Rejean Proulx Visit my family at http://interfree.ca MSN is: rejp@rogers.com Ham License VA3REJ ----- Original Message ----- From: "Luke Davis" To: "Speakup is a screen review system for Linux." Sent: Monday, November 10, 2003 9:43 PM Subject: Re: Mixed Case Directory Names > This should do it for you. Call it with the root directory of the > directories/files whos' names you want to change. > > For example, if you called it "renamer", and your files were in > "/var/www/files/otherfiles", you would do: > > ./renamer /var/www/files/otherfiles > > The script follows: > > #!/bin/sh > cd $1 || echo "No such directory." && exit 1; > tf=/tmp/renamer.$$; > rm -f $tf; > ls *[A-Z]* | awk '{print "mv", $1, tolower($1)}' > $tf; > source $tf; > rm -f $tf; > exit 0; > > > > > > > > > > > On Mon, 10 Nov 2003, Rejean Proulx wrote: > > > We need a script in the worst way. We have 7,000 of them to do. > > > > Rejean Proulx > > Visit my family at http://interfree.ca > > MSN is: rejp@rogers.com > > Ham License VA3REJ > > > > ----- Original Message ----- > > From: "Luke Davis" > > To: "Speakup is a screen review system for Linux." > > Sent: Monday, November 10, 2003 7:30 PM > > Subject: Re: Mixed Case Directory Names > > > > > > > Do you want a script to do them all at once, or can you do it manually? > > > > > > If manyally, just do: > > > > > > mv DiReCtoRY directory > > > > > > On Mon, 10 Nov 2003, Rejean Proulx wrote: > > > > > > > Is there a way of changing a bunch of directories from mixed case to > > lower > > > > case names? > > > > > > > > Rejean Proulx > > > > Visit my family at http://interfree.ca > > > > MSN is: rejp@rogers.com > > > > Ham License VA3REJ > > > > > > > > > > > > _______________________________________________ > > > > Speakup mailing list > > > > Speakup@braille.uwo.ca > > > > http://speech.braille.uwo.ca/mailman/listinfo/speakup > > > > > > > > > > _______________________________________________ > > > Speakup mailing list > > > Speakup@braille.uwo.ca > > > http://speech.braille.uwo.ca/mailman/listinfo/speakup > > > > > > _______________________________________________ > > Speakup mailing list > > Speakup@braille.uwo.ca > > http://speech.braille.uwo.ca/mailman/listinfo/speakup > > > > _______________________________________________ > Speakup mailing list > Speakup@braille.uwo.ca > http://speech.braille.uwo.ca/mailman/listinfo/speakup