My hosting provider offers PHP4 and PHP5. Unfortunately, all files ending in .php get interpreted by PHP4, while all files ending in .php5 get interpreted by PHP5. So, how do I quickly change all of my files that end in .php to .php5?
Do a google search for "recursively rename files", and you might run across this:
So, to accomplish my task, I use the following:
find . -type f -print0 | xargs -0 rename 's/.php$/.php5/g'