From: urgrue Subject: Re: renaming multiple files Date: Mon, 22 Nov 2004 20:03:02 +0200 Message-ID: <20041122180302.GA2676@cow2.intra.tumsan.fi> References: <41A20C74.4050709@fcaglp.unlp.edu.ar> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <41A20C74.4050709@fcaglp.unlp.edu.ar> Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Fabio Zyserman Cc: linux-admin@vger.kernel.org Using the command "mmv": mmv "prefix-*" "#1" This would strip "prefix-" from the beginning of each file. On Mon, Nov 22, 2004 at 12:57:40PM -0300, Fabio Zyserman wrote: > Hi all, > > I have some files in a directory, called > prefix-file1 > prefix-file2 > etc > > I want to rename them to > file1 > file2 > etc > > How can I do it with a bash command? > > Many thanks in advance, > > Fabio Zyserman > - > To unsubscribe from this list: send the line "unsubscribe linux-admin" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >