Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!sdcsvax!ucsdhub!hp-sdd!ncr-sd!sceard!mrm From: mrm@sceard.UUCP (M.R.Murphy) Newsgroups: comp.unix.xenix Subject: Re: Filenames -- converting Message-ID: <895@sceard.UUCP> Date: 13 Jun 89 21:16:32 GMT References: <1011@cernvax.UUCP> <3339@cps3xx.UUCP> <655@eecea.eece.ksu.edu> <25879@beta.lanl.gov> Reply-To: mrm@sceard.UUCP (0040-M.R.Murphy) Organization: Sceard Systems, Inc. San Marcos, CA 92069 Lines: 34 In article <25879@beta.lanl.gov> srb@beta.UUCP ( Steve Berger ) writes: > > I have a directory with all the filenames in Uppercase letters. > I'd like to move them all to lowercase. > > Is there an easy way to do that? I figure there must be a way using > sed or something, but I haven't figured it out yet, and I don't want to > go thru and use mv to move each file name, that will take me forever. > > Any ideas will be appreciated. > > Steve Berger > > srb@lanl.gov In all of the followups to this posting that I saw, I didn't notice anyone mention the possible advisability of checking that the translation to lowercase of the filename in question might produce a filename that already exists in the directory in question. This, then, might cause unwanted or unexpected results if some of the simpler scripts were used verbatim. Pedantic, eh? If I had a dime for each time I've spouted "Oops" or stronger 1.8sec after hitting with my right little finger, I could buy a good book on shell programming :-) Typing FMT DK0:/VE=DK1: in DOS-11 with a source pack on DK0: and a scratch on DK1: at 2AM comes to mind. --- Mike Murphy Sceard Systems, Inc. 544 South Pacific St. San Marcos, CA 92069 mrm@Sceard.COM {hp-sdd,nosc,ucsd,uunet}!sceard!mrm +1 619 471 0655