6

Tip #27  

Use awk to change the file extension for a group of files. For example to change all .htm files to .php:

ls *htm | awk -F. '{print "mv "$0" "$1".php"}' | sh


This can be tested first by leaving the '| sh' off to give a list of the commands that will be executed.