How do I change the extensions on a slew of files
Till Plewe
till at plewe.is.tsukuba.ac.jp
Wed Sep 3 19:06:00 PDT 2003
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
More information about the freebsd-questions
mailing list