Plankton has asked for the wisdom of the Perl Monks concerning the following question:
... but this is what happens ...$ /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.
What am I doing wrong here?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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl pie with $1 replacements ?
by AR (Friar) on May 04, 2010 at 20:36 UTC | |
by Plankton (Vicar) on May 04, 2010 at 21:48 UTC | |
|
Re: Perl pie with $1 replacements ?
by choroba (Cardinal) on May 04, 2010 at 20:36 UTC | |
by ww (Archbishop) on May 04, 2010 at 22:58 UTC |