From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Lassi A. Tuura" To: gnu-win32@cygnus.com Subject: Re: upper/lower case question Date: Wed, 15 Oct 1997 07:51:00 -0000 Message-id: <3444B673.6B4C5508@cern.ch> References: <3.0.2.32.19971013172034.00907da0@mailhost.wyoming.com> X-SW-Source: 1997-10/msg00309.html 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.Tuura@cern.ch There's no sunrise without a night - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help".