Date: Mon, 25 Sep 2000 15:12:54 +0200 (CEST) From: Paul Herman <pherman@frenchfries.net> To: "Dimitri T." <midios4@hotmail.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: how do I get rid of that prefix?! Message-ID: <Pine.BSF.4.21.0009251451000.276-100000@bagabeedaboo.security.at12.de> In-Reply-To: <F2328k69RKLpgTFur2i00003f62@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 25 Sep 2000, Dimitri T. wrote:
> I have some hundreds of files with a filename starting with a specific
> prefix (lets say 'abc') and I want to rename them and get rid of this
> prefix. How do I do that?
That would be /bin/sh trick number 673:
for filename in abc*; do mv ${filename} ${filename#abc}; done
-Paul.
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?Pine.BSF.4.21.0009251451000.276-100000>
