Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!seismo!rochester!ken From: ken@rochester.UUCP Newsgroups: comp.unix.questions Subject: Re: Renaming groups of files Message-ID: <320@sol.ARPA> Date: Fri, 5-Jun-87 22:02:45 EDT Article-I.D.: sol.320 Posted: Fri Jun 5 22:02:45 1987 Date-Received: Sun, 7-Jun-87 00:36:16 EDT References: <2271@calmasd.GE.COM> <719@hao.UCAR.EDU> Reply-To: ken@rochester.UUCP (Ken Yap) Distribution: world Organization: U of Rochester, CS Dept, Rochester, NY Lines: 11 I like to use sed in a shell stream, thus: ls a.* | sed 's/a\.\(.*\)/mv & b\.\1/' | sh with other variations for renaming suffixes, middles, etc. Yes, it is cryptic, but a really quick solution. A nice thing is you can leave out the | sh the first time and then say !! | sh when you see the commands generated are right. In csh, that is. Ken