Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!amdcad!sun!pitstop!sundc!seismo!uunet!mcvax!ukc!stl!stc!datlog!torch!richard From: richard@torch.UUCP (Richard Nuttall) Newsgroups: comp.unix.wizards Subject: Re: simple question about mv Message-ID: <228@torch.UUCP> Date: 6 Feb 89 10:12:27 GMT References: <18217@adm.BRL.MIL> Organization: TORCH Computers Ltd., Cambridge, England Lines: 23 DEG41560@ua1vm.ua.edu (Rob Smith) writes: >HI, > I know this is simple, but then again, so am I. What if I want to mv a bunch >of files with the same suffix to another suffix. The following does not >work > mv *.flip *.flop I prefer the C shell foreach, which is really neat : foreach i (*.flip) echo $i mv $i $i:r.flop end I use these kind of commands all the time, and usually include the echo line (not actually necessary) so I can see what's happening. Richard.