Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Sep 2003 11:06:28 +0900
From:      Till Plewe <till@plewe.is.tsukuba.ac.jp>
To:        Jonas <jonas@netwood.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How do I change the extensions on a slew of files
Message-ID:  <20030904020628.GE50130@plewe.is.tsukuba.ac.jp>
In-Reply-To: <024201c37283$60b7b400$0800a8c0@master>
References:  <web-16293600@gmsi1.com> <024201c37283$60b7b400$0800a8c0@master>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 03, 2003 at 06:25:07PM -0700, Jonas wrote:
> 
> Hello Know-It-Alls,
> 
> If I have a directory with a whole slew of files with the same file
> extension, for example:
> 
> 1-1-1.inc
> 1-1-2.inc
> 1-1-3.inc
> etc.
> 
> What command can I use to change the file extension - but keep the file
> name the same - in one swell swoop? The equivalent command in Windows
> would be:
> 
> C:\>ren *.inc *.htm 
> 

The shortest answer is probably:

portinstall mmv; mmv "*.inc" =1.htm

- Till



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