Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!amdcad!sun!imagen!atari!portal!uunet!mcvax!cernvax!unigs!eiger From: eiger@unigs.CH (Eiger Richard) Newsgroups: comp.unix.questions Subject: Re: simple question about mv Message-ID: <120@unigs.CH> Date: 8 Feb 89 21:49:28 GMT References: <18216@adm.BRL.MIL>, <210@libove.UUCP> Organization: UNIGS Switzerland Lines: 13 A simple way to solve the often found problem of renaming some files suffixes can be solved as follows (at least under UNIX V): for name in *.flip do mv $name `basename $name .flip`.flop done which will rename all files *.flip in such with the extension .flop. The command basename can be used for other tasks as well. Please check the user's manual (1). Best luck Richard Eiger