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