Date: Wed, 31 Jan 2001 13:45:32 +0100 (MET) From: Eckart Hofmann <bofh@muenster.de> To: anar@ees2.oulu.fi (Ana Romero) Cc: questions@FreeBSD.ORG Subject: Re: fast answer is needed about commands Message-ID: <200101311245.NAA24041@bbaer.muenster.de> In-Reply-To: <Pine.GSO.4.30.0101311419040.22753-100000@stekt56> from Ana Romero at "Jan 31, 2001 2:24:21 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101311245.NAA24041>