From owner-freebsd-questions Tue Jan 9 13:29:17 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id CEF6737B69B for ; Tue, 9 Jan 2001 13:28:55 -0800 (PST) Received: (from dan@localhost) by dan.emsphone.com (8.11.1/8.11.1) id f09LSmr25646; Tue, 9 Jan 2001 15:28:48 -0600 (CST) (envelope-from dan) Date: Tue, 9 Jan 2001 15:28:48 -0600 From: Dan Nelson To: Peter Brezny Cc: freebsd-questions@FreeBSD.ORG Subject: Re: A simple shell question, How do i rename multiple files? Message-ID: <20010109152847.A5312@dan.emsphone.com> References: <003101c07a95$b24117a0$46010a0a@sysadmininc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.13i In-Reply-To: <003101c07a95$b24117a0$46010a0a@sysadmininc.com>; from "Peter Brezny" on Tue Jan 9 15:41:31 GMT 2001 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Jan 09), Peter Brezny said: > 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 greatest tool for this (or any file renaming) job is ports/misc/mmv. Install it and run mmv "*.xxx" "=1" It'll even warn you about filename conflicts if they occur. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message