[wplug] changing extensions?

Mike Griffin mike at nbi.edu
Tue Mar 27 10:07:27 EST 2007


Easy enough to add a letter to the end of a file name, but let's change the
entire file extension to answer later questions.

 for i in *.htm; do mv $i `basename $i .htm`.html; done 



-----Original Message-----
From: wplug-bounces+mike=nbi.edu at wplug.org
[mailto:wplug-bounces+mike=nbi.edu at wplug.org] On Behalf Of Zach
Sent: Tuesday, March 27, 2007 1:07 AM
To: General user list
Subject: [wplug] changing extensions?

Evening,

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?

Zach
_______________________________________________
wplug mailing list
wplug at wplug.org
http://www.wplug.org/mailman/listinfo/wplug



More information about the wplug mailing list