# change .htm files to .html
for f in *.htm; do mv "$f" "$f"l; done
# change .html files to .htm
for f in *.html; do mv "$f" "${f%l}"; done
#change .html files to .shtml
for f in *.html; do mv "$f" "${f%html}"shtml; done
#change .html files to php
for f in *.html; do mv "$f" "${f%html}"php; done
Thanks to you all for a whole range of great suggestions - this gives me a bunch of options and approaches to try out.
You are not logged in, either login or create an account to post comments
posted by curious_yellow at 3:00 AM on December 30, 2008