From owner-freebsd-questions Tue Jan 9 12:57:12 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail8.sc.rr.com (fe8.southeast.rr.com [24.93.67.55]) by hub.freebsd.org (Postfix) with ESMTP id E8CBC37B401 for ; Tue, 9 Jan 2001 12:56:53 -0800 (PST) Received: from sc.rr.com ([24.88.102.101]) by mail8.sc.rr.com with Microsoft SMTPSVC(5.5.1877.537.53); Tue, 9 Jan 2001 15:55:12 -0500 Received: (from dmaddox@localhost) by sc.rr.com (8.11.1/8.11.1) id f09KvYQ11593; Tue, 9 Jan 2001 15:57:34 -0500 (EST) (envelope-from dmaddox) Date: Tue, 9 Jan 2001 15:57:34 -0500 From: "Donald J . Maddox" To: Peter Brezny 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> Reply-To: dmaddox@sc.rr.com Mail-Followup-To: Peter Brezny , freebsd-questions@freebsd.org References: <003101c07a95$b24117a0$46010a0a@sysadmininc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <003101c07a95$b24117a0$46010a0a@sysadmininc.com>; from peter@sysadmin-inc.com on Tue, Jan 09, 2001 at 03:41:31PM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG #!/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