[wplug] changing extensions?

David Ostroske eksortso at gmail.com
Thu Mar 29 09:14:00 EST 2007


On 3/27/07, Eric Cooper <ecc at cmu.edu> wrote:
> On Tue, March 27, 2007 6:27 pm, Eric Cooper wrote:
>
> > Since nobody's mentioned it yet, my favorite tool for this
> > is "replace":
> >    $ replace 's/\.htm$/.html/' *
>
> Sorry, I meant "rename", not "replace".

Using rename is actually simpler than that. This comes straight from
the man page:

$ rename .htm .html *.htm

Eric, I've got to thank you for mentioning this, because I didn't
realize that rename can be used on suffixes. I had thought it only
worked on prefixes.

-- 
David Ostroske <eksortso at gmail.com>


More information about the wplug mailing list