digital imprint of David Miller

One-liner for Perch workflow.

So you've spent some time putting together some beautiful static templates for your brand new Perch site, but that Yeoman generator you used to get things up and running had you building .html files, and Perch likes delicious .php files! Oh noes!

Never fear, this command line one liner is here to save the day:

for file in *.html; do mv "${file}" "${file%.html}.php"; done

This will change the file extension from .html to .php for all .html files in the current directory.