Saturday, January 12, 2008

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;

No comments: