[wplug] changing extensions?

Eric Cooper ecc at cmu.edu
Tue Mar 27 17:27:10 EST 2007


On Tue, March 27, 2007 1:06 am, Zach wrote:
> I have many files (thousands) which end in .htm and I would like
> changed to .html (mainly for aesthetic purposes I prefer this) is
> there a nice Linux automated way I can do this from command line?

Since nobody's mentioned it yet, my favorite tool for this
is "replace":
   $ replace 's/\.htm$/.html/' *

-- 
Eric Cooper             e c c @ c m u . e d u




More information about the wplug mailing list