moving upper case names to lower case

Sean Goggin sean at watcsc.waterloo.edu
Thu Aug 24 14:06:18 AEST 1989


In article <20672 at adm.BRL.MIL> Leisner.Henr at xerox.com (Marty) writes:
>I'm looking for a good, clean way to move files from upper case names to lower 

Easy use sh or /bin/sh and do the following

for i in *
>do
>mv $i `echo $i | tr "[A-Z]" "[a-z]"`
>done

the wildcard on the top is of course the files.
TEST this first, it should run on all things, but who knows, eh.

Sean Goggin 
_______________________________________________________________________________
 |o| HAL 9000 / SAG         S Goggin  BITNET -  bvscistu at watdcs.bitnet
_|_|__________________________________UUCP___-_...!watmath!watcsc!sean_________



More information about the Comp.unix.questions mailing list