timbolt
09-10-2001, 12:08 PM
Hello!
I am converting a site written in basic html with SSI to PHP.
Have used:
perl -pi.bkp -e 's|<!--#include virtual="|include_once("|g' `find ./ -name \*.shtml`
and similar to successfully change the text of the files, but am having real difficulty in finding a suitable command line technique for going through the whole directory structure similarly and converting all the .shtml file names to .php!
Expect it be a derivative of:
find -name \*.shtml -exec ??????? '{}'
Thanks!
Tim
I am converting a site written in basic html with SSI to PHP.
Have used:
perl -pi.bkp -e 's|<!--#include virtual="|include_once("|g' `find ./ -name \*.shtml`
and similar to successfully change the text of the files, but am having real difficulty in finding a suitable command line technique for going through the whole directory structure similarly and converting all the .shtml file names to .php!
Expect it be a derivative of:
find -name \*.shtml -exec ??????? '{}'
Thanks!
Tim