Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!nrl-cmf!ukma!husc6!genrad!decvax!gsg!lew From: lew@gsg.UUCP (Paul Lew) Newsgroups: comp.unix.wizards Subject: Re: simple question about mv Keywords: mv rename VMS DOS Message-ID: <294@gsg.UUCP> Date: 29 Jan 89 03:16:48 GMT References: <18217@adm.BRL.MIL> Reply-To: lew@gsg.UUCP (Paul Lew) Organization: General Systems Group, Salem, NH Lines: 25 In article <18217@adm.BRL.MIL> DEG41560@ua1vm.ua.edu (Rob Smith) writes: > > 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 > >what does? I'm under Ultrix 2.2. I'm doing it by hand, but I'd like to >be able to do wild card renames, ala DOS. I assume you are using Csh, add the following in your .cshrc: alias ren 'set noglob; rename \!*; unset noglob' You can then issue command like: $ ren *.flip *.flop Rename is a shell script for the exercise of the readers. I can mail it to those who dont want to reinvent the wheel. If enough interest, I will post it to comp.sources.misc. -- Paul Lew {oliveb,harvard,decvax}!gsg!lew (UUCP) General Systems Group, 5 Manor Parkway, Salem, NH 03079 (603) 893-1000