Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!uunet!crdgw1!crdos1!davidsen From: davidsen@crdos1.crd.ge.COM (Wm E Davidsen Jr) Newsgroups: comp.unix.questions Subject: Re: moving upper case names to lower case Summary: You can do nit in ksh easily Message-ID: <111@crdos1.crd.ge.COM> Date: 23 Aug 89 02:09:54 GMT References: <20672@adm.BRL.MIL> <9326@chinet.chi.il.us> Organization: GE Corp R&D Center Lines: 15 In ksh you can do it using the uppercase attribute (I realize we don't all use ksh yet). $ typeset -u ucase $ for file in *[a-z]* > do ucase=${file} > if [ ! -f $ucase ] > then mv ${file} ${ucase} > else echo "Can't move ${file}" > fi >done ksh takes most of the pain out of it, although you may find typing in the C program easier. If you have ksh you can put this in as a macro.