Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jan 2001 15:28:48 -0600
From:      Dan Nelson <dnelson@emsphone.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:  <20010109152847.A5312@dan.emsphone.com>
In-Reply-To: <003101c07a95$b24117a0$46010a0a@sysadmininc.com>; from "Peter Brezny" on Tue Jan  9 15:41:31 GMT 2001
References:  <003101c07a95$b24117a0$46010a0a@sysadmininc.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010109152847.A5312>