I'm looking to scan a directory for files named *.php, and then execute each one with the PHP preprocessor, and capture the output to the same location as the file, with the same filename, only .html extension instead of .php.
so far I have:
find . -type f -name "*.php" | xargs -I {} php {} >> '{ dirname {}; basename {} .php; }'
thanks for your help on this bash puzzle !