Once you have the names of the files you renamed (for instance names.html should become names.php)
You can obtain the list of the concerned files with something like "grep names.php *"
And then, for each of the concerned files, do
cat $1 |sed 's /names.html/names.php/g'|sed 's/file2.html/file2.php' >$1.tmp; cp $1.tmp $1Of course, backup your source folder, and first test it without the last "cp" instruction...




