From: Lassi DOT Tuura AT cern DOT ch (Lassi A. Tuura) Subject: Re: upper/lower case question 15 Oct 1997 13:13:26 -0700 Message-ID: <3444B673.6B4C5508.cygnus.gnu-win32@cern.ch> References: <3 DOT 0 DOT 2 DOT 32 DOT 19971013172034 DOT 00907da0 AT mailhost DOT wyoming DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: gnu-win32 AT cygnus DOT com Charles Curley wrote: > Quick & dirty (from BASH): > > mv FILE.C foo.c; mv foo.c file.c The following script might also work, although you may have to do `mv' twice: for f in $*; do new="`echo $f | tr '[:upper:]' '[:lower:]'`" [ "$f" = "$new" ] || mv $f $new || exit 1 done Surprisingly enough, it converts all arguments file names from upper case to lower case :-) If you call this script `lc', then invoking it with `lc *' will lowercase all files in a directory. //lat -- Lassi DOT Tuura AT cern DOT ch There's no sunrise without a night - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".