DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Change File Extensions With Bash Shell
To change all .htm files in a folder to .html files:
for f in *.htm; do mv $f `basename $f .htm`.html; done;






Comments
Snippets Manager replied on Thu, 2009/03/12 - 12:19pm
for f in *.MP3; do mv "$f" "`basename "$f" .MP3`.mp3"; done;