neversaint has asked for the wisdom of the Perl Monks concerning the following question:
It seems that Perl can't recognize the regex in the second grep. What's the correct way to do it?my @load = `ps -ef | grep neversaint | grep 'somecmnd.exe$' | wc -l`;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Quoting in Backtick
by Fletch (Bishop) on Oct 27, 2007 at 04:31 UTC | |
|
Re: Quoting in Backtick
by kyle (Abbot) on Oct 27, 2007 at 03:46 UTC | |
|
Re: Quoting in Backtick
by GrandFather (Saint) on Oct 27, 2007 at 03:46 UTC | |
|
Re: Quoting in Backtick
by tinita (Parson) on Oct 27, 2007 at 17:08 UTC | |
by Fletch (Bishop) on Oct 28, 2007 at 02:19 UTC | |
|
Re: Quoting in Backtick (readpipe)
by lodin (Hermit) on Oct 28, 2007 at 11:26 UTC | |
|
Re: Quoting in Backtick
by Anonymous Monk on Oct 28, 2007 at 18:53 UTC |