Articles: Renaming multiple files without the rename utility
Posted by: david on 08/13/2002 - 04:01 PM
If you use the bash shell (and don't have the "rename" utility), here's a way to rename multiple files, in this case from *.html to *.php:
for f in *.html; do mv $f
basename $f .html.php; done