Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sdd.hp.com!think.com!linus!nixbur!nixpbe!ugun13!ugum01!josef From: josef@nixpbe.nixdorf.de (josef Moellers) Newsgroups: comp.unix.programmer Subject: Re: CHANGING file names - (small to CAPITOL) Keywords: small to CAPs Message-ID: Date: 14 Dec 90 07:31:59 GMT References: <10617@uhccux.uhcc.Hawaii.Edu> <110800@convex.convex.com> Sender: news@ugun13.UUCP Distribution: usa Lines: 26 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 |