Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!midway!oddjob!zag From: zag@oddjob.uchicago.edu (Zack Gardner) Newsgroups: comp.unix.questions,comp.unix.programmers Subject: Shell Script needed Message-ID: <1991Jan28.194439.29690@midway.uchicago.edu> Date: 28 Jan 91 19:44:39 GMT Sender: news@midway.uchicago.edu (News Administrator) Reply-To: zag@oddjob.uchicago.edu (Zack Gardner) Organization: University of Chicago Lines: 17 Hello all. This question should be a breeze for all you unix experts out there. I need a shell script to do the following: I have a bunch of files all named fort.11, fort.12, fort.13, etc. (not necessarily in an unbroken sequence), and I want a command where I can say something like: rename cn90 which will rename fort.11 to cn90.11, fort.12 to cn90.12 etc. In other words all the fort.* files get renamed to cn90.*. This seems tremendously simple, but I can't figure out how to do it. Any ideas? Thanks in advance, Zack