Date: Tue, 9 Jan 2001 15:57:34 -0500 From: "Donald J . Maddox" <dmaddox@sc.rr.com> To: Peter Brezny <peter@sysadmin-inc.com> Cc: freebsd-questions@freebsd.org Subject: Re: A simple shell question, How do i rename multiple files? Message-ID: <20010109155734.A11544@cae88-102-101.sc.rr.com> In-Reply-To: <003101c07a95$b24117a0$46010a0a@sysadmininc.com>; from peter@sysadmin-inc.com on Tue, Jan 09, 2001 at 03:41:31PM -0800 References: <003101c07a95$b24117a0$46010a0a@sysadmininc.com>
next in thread | previous in thread | raw e-mail | index | archive | help
#!/bin/sh for i in * 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?20010109155734.A11544>