Howto: Mass Rename File Extensions in Linux/BASH
Just recently I had a bunch of HTML files (files with a .html extension) that I wanted to rename to .cfm so that they would be interpreted by a CFML engine. To do this, I created a quick BASH loop and ran it directly in the command line: for i in *.html; do mv $i `basename $i html`cfm; done The semi-colons at the end of the first two lines will tell bash that you want to enter more commands, and…