#!/bin/sh cat << EOF > tmp.php EOF php -f tmp.php >$5.tmp mv $5.tmp $5 rm -f tmp.php