Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!bloom-beacon!spdcc!ima!cfisun!lakart!dg From: dg@lakart.UUCP (David Goodenough) Newsgroups: comp.unix.wizards Subject: Re: HELP converting filenames! Message-ID: <714@lakart.UUCP> Date: 10 Oct 89 17:20:52 GMT References: <2694@taux01.UUCP> Organization: Lakart Corporation, Newton, MA Lines: 34 From article <2694@taux01.UUCP>, by amos@taux01.UUCP (Amos Shapir): > In article <9754@cadnetix.COM> rusty@cadnetix.COM (Rusty Carruth) writes: > | > |First, go to the directory of interest and do 'ls -1 > doit'. > |Chmod 777 doit. Now, go edit 'doit' (for all you emacs haters > |out there, sorry but emacs seems to work better for what I'm about > |to suggest than does vi) ..... long discourse on emacs use deleted > What? You have to do all that in emacs, and you still claim it's > better than vi? To save vi's lost honor, here's how it should be done: > > :%s/.*/mv & \U&\e/ > > One line, no macros needed. I'd agree with Amos, except why not do the following: foreach i ( filelist ) mv $i `echo $i | tr a-z A-Z` end (or if you still live in the dark ages) for i in filelist do mv $i `echo $i | tr a-z A-Z` done -- dg@lakart.UUCP - David Goodenough +---+ IHS | +-+-+ ....... !harvard!xait!lakart!dg +-+-+ | AKA: dg%lakart.uucp@xait.xerox.com +---+