From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from server1.shellworld.net ([64.39.15.178] ident=root) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1AJOVQ-000104-00 for ; Mon, 10 Nov 2003 21:43:48 -0500 Received: from server1.shellworld.net (ldavis@localhost.shellworld.net [127.0.0.1]) by server1.shellworld.net (8.12.8/8.11.1) with ESMTP id hAB2hiwO043568 for ; Mon, 10 Nov 2003 20:43:44 -0600 (CST) (envelope-from ldavis@shellworld.net) Received: from localhost (ldavis@localhost) by server1.shellworld.net (8.12.8/8.12.8/Submit) with ESMTP id hAB2hiH9043565 for ; Mon, 10 Nov 2003 20:43:44 -0600 (CST) (envelope-from ldavis@shellworld.net) X-Authentication-Warning: server1.shellworld.net: ldavis owned process doing -bs Date: Mon, 10 Nov 2003 20:43:44 -0600 (CST) From: Luke Davis To: "Speakup is a screen review system for Linux." In-Reply-To: <00cf01c3a7ec$ea57f820$6901a8c0@ism.can.ibm.com> Message-ID: References: <00bd01c3a7e7$87307650$6901a8c0@ism.can.ibm.com> <00cf01c3a7ec$ea57f820$6901a8c0@ism.can.ibm.com> Organization: "Tacticus Communications, Inc." MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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:43:48 -0000 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 >