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 1AJRWY-00032u-00 for ; Tue, 11 Nov 2003 00:57:10 -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 hAB5v6wO051527 for ; Mon, 10 Nov 2003 23:57:06 -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 hAB5v6Yi051523 for ; Mon, 10 Nov 2003 23:57:06 -0600 (CST) (envelope-from ldavis@shellworld.net) X-Authentication-Warning: server1.shellworld.net: ldavis owned process doing -bs Date: Mon, 10 Nov 2003 23:57:05 -0600 (CST) From: Luke Davis To: Speakup@braille.uwo.ca Message-ID: Organization: "Tacticus Communications, Inc." MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: 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 05:57:11 -0000 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