From owner-freebsd-questions Wed Jan 31 5:10:44 2001 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id 3756037B6BA for ; Wed, 31 Jan 2001 05:10:24 -0800 (PST) Received: from [195.11.243.26] (helo=Debug) by post.mail.nl.demon.net with smtp (Exim 3.14 #2) id 14Nx1h-0004Ra-00; Wed, 31 Jan 2001 13:10:21 +0000 To: Ana Romero , Cliff Sarginson , Questions FreeBSD From: Cliff Sarginson Subject: Re: fast answer is needed about commands Date: Wed, 31 Jan 2001 13:10:21 GMT X-Mailer: www.webmail.nl.demon.net X-Sender: postmaster@btvs.demon.nl X-Originating-IP: 192.250.25.251 Message-Id: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > > Ok, I make this command and nothing happens,do I need anything else to > execute it? As you can see I am a bit new in freebsd. > >Be sure the single quotes before echo and at the end of the line are back quotes ..usually below the ~ on a US keyboard.. (top left) Cliff I know it does something ..I tested it :) Cliff > > > > On Wed, 31 Jan 2001, Cliff Sarginson wrote: > > >for i in *-new > >do > > mv $i `echo $i | sed "s/-new//"` > >done > > > >> > >> HI!! > >> > >> I have many files named like XXX-new which I want to move to XXX. I > >> mean, > >> > >> mv XXX-new XXX > >> > >> > >> Can I do it in once in some way? I mean, I would like to do > >> > >> mv *-new * > >> > >> but it is not allowed > >> > >> Thank you, > >> > >> Ana > >> > >> > >> > >> > >> _________________________________ > >> > >> Ana Romero > >> Centre for Wireless Communications > >> PL 4500, Tutkijantie 2 E, FIN-90014 > >> University of Oulu > >> Oulu, Finland > >> > >> > >> > >> > >> To Unsubscribe: send mail to majordomo@FreeBSD.org > >> with "unsubscribe freebsd-questions" in the body of the message > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message