cd /path/to/php_files/ ls | grep '\.php$' | xargs add-exits-to-php.pl