$ /usr/bin/perl -pie 's/^(\/usr\/sbin\/tmpwatch.\*) (\d+ \/tmp)/\$1 -x \/tmp\/ccc \$2/' /tmp/tmpwatch Can't open perl script "s/^(\/usr\/sbin\/tmpwatch.\*) (\d+ \/tmp)/\$1 -x \/tmp\/ccc \$2/": No such file or directory. Use -S to search $PATH for it. #### Can't open perl script "s/^(\/usr\/sbin\/tmpwatch.\*) (\d+ \/tmp)/\$1 -x \/tmp\/ccc \$2/": No such file or directory. Use -S to search $PATH for it.