% which touch /usr/bin/touch #### `echo "#!/usr/bin/env touch $file" > tmp.sh`; #### `echo "#!\$(which touch) $file" > tmp.sh`; #### `echo "#!/usr/bin/env perl -e 'system \"\$(which touch) $file\"'" > tmp.pl`; system './tmp.pl';