Date: Mon, 25 Sep 2000 09:31:31 -0500 From: Dan Nelson <dnelson@emsphone.com> To: "Dimitri T." <midios4@hotmail.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: how do I get rid of that prefix?! Message-ID: <20000925093131.A18661@dan.emsphone.com> In-Reply-To: <F2328k69RKLpgTFur2i00003f62@hotmail.com>; from "Dimitri T." on Mon Sep 25 12:36:43 GMT 2000 References: <F2328k69RKLpgTFur2i00003f62@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Sep 25), Dimitri T. said: > 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? > > I've been experementing and actually managed to add prefices, delete > sufices but still cannot figure how to DELETE PREFECES! (it's driving > me crazy, u know.. Aaaargh!!) ~%^@ ports/misc/mmv is great for this. mmv "abc*" "=1" It'll even warn you if there are naming conflicts. Say you have "abcabcabc", "abcabc" and "abc". It'll print: abc -> : bad new name. abcabc -> abc : old abc was to be done first. abcabcabc -> abcabc : old abcabc was to be done first. -- Dan Nelson dnelson@emsphone.com 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?20000925093131.A18661>