From owner-freebsd-questions Wed Jan 31 4:43:21 2001 Delivered-To: freebsd-questions@freebsd.org Received: from bbaer.muenster.de (bbaer.muenster.de [195.202.32.20]) by hub.freebsd.org (Postfix) with ESMTP id 9BB2137B69C for ; Wed, 31 Jan 2001 04:43:04 -0800 (PST) Received: (from bofh@localhost) by bbaer.muenster.de (8.9.3/8.9.3) id NAA24041; Wed, 31 Jan 2001 13:45:33 +0100 From: Eckart Hofmann Message-Id: <200101311245.NAA24041@bbaer.muenster.de> Subject: Re: fast answer is needed about commands In-Reply-To: from Ana Romero at "Jan 31, 2001 2:24:21 pm" To: anar@ees2.oulu.fi (Ana Romero) Date: Wed, 31 Jan 2001 13:45:32 +0100 (MET) Cc: questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL48 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sie, Ana Romero, haben geschrieben: > > mv XXX-new XXX > > > Can I do it in once in some way? I mean, I would like to do > #!/bin/sh cd /to/the/location/of/your/files for i in * do mv $i `basename $i -new` done # have a look at the man page of basename, too. # Hth, # Eckart To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message