Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!wuarchive!uunet!ncrlnk!ncrstp!npdiss1!mercer From: mercer@npdiss1.StPaul.NCR.COM (Dan Mercer) Newsgroups: comp.unix.programmer Subject: Re: CHANGING file names - (small to CAPITOL) Keywords: small to CAPs Message-ID: <798@npdiss1.StPaul.NCR.COM> Date: 21 Dec 90 18:10:23 GMT References: <10617@uhccux.uhcc.Hawaii.Edu> <110800@convex.convex.com> Reply-To: mercer@npdiss1.StPaul.NCR.COM (Dan Mercer) Distribution: usa Organization: StPaul Lines: 44 In article josef@nixpbe.nixdorf.de (josef Moellers) writes: :In <110800@convex.convex.com> tchrist@convex.COM (Tom Christiansen) writes: : :>In article <10617@uhccux.uhcc.Hawaii.Edu> kyung@uhccux.UUCP (Kyung Lee) writes: :>: Hi everyone, since unix is case sensitive, I'm having some :>: problem with file names...small and CAPs. : :>This is a feature. : :>: Has anyone ever come up with a program that renames all the :>: files in a directory from small letter to CAPs?? : :>That's not the way most people want it changed, you know. Who :>wants all those ugly capitals anyway? : :Try :% for file in * :> do cap=`echo $file | tr '[a-z]' '[A-Z]'` :> mv $file $cap :> done :% : :-- :| Josef Moellers | c/o Siemens Nixdorf Informationssysteme AG | :| USA: mollers.pad@nixdorf.com | Abt. STO-XS 113 | :| !USA: mollers.pad@nixdorf.de | Heinz-Nixdorf-Ring | :| Phone: (+49) 5251 104662 | D-4790 Paderborn | There is a far more efficient method: