Date: Tue, 9 Jan 2001 16:01:46 -0500 From: "Donald J . Maddox" <dmaddox@sc.rr.com> To: Peter Brezny <peter@sysadmin-inc.com>, freebsd-questions@freebsd.org Subject: Re: A simple shell question, How do i rename multiple files? Message-ID: <20010109160146.A11647@cae88-102-101.sc.rr.com> In-Reply-To: <20010109155734.A11544@cae88-102-101.sc.rr.com>; from dmaddox@sc.rr.com on Tue, Jan 09, 2001 at 03:57:34PM -0500 References: <003101c07a95$b24117a0$46010a0a@sysadmininc.com> <20010109155734.A11544@cae88-102-101.sc.rr.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jan 09, 2001 at 03:57:34PM -0500, Donald J . Maddox wrote: > #!/bin/sh > for i in * ^ Obviously, this should be '*.xxx' :/ > do > move $i ${i%.xxx} > done > > On Tue, Jan 09, 2001 at 03:41:31PM -0800, Peter Brezny wrote: > > I've got a bunch of files all ending in the same extension (somename.xxx) > > > > I want to rename all of them to just (somename) > > > > I've tried > > mv *.xxx * > > > > the same format with cp > > > > i've read the mv man page. > > > > This can't be that hard. > > > > TIA > > > > Peter Brezny > > SysAdmin Services Inc. > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message 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?20010109160146.A11647>