On Fri, 2008-08-01 at 11:16 +0100, Rob Dixon wrote:
> Mr. Shawn H. Corey wrote:
> >
> > next if /grep/;
>
> No. The op was using grep to filter processes from the output of ps. he had a
> filter of
>
> grep -v grep
>
> so that the filter itself wouldn't be selected. John is using perl to filter
> the
> processes, so instances of grep shouldn't be filtered out.
>
> Rob
>
Yes. `grep -v grep` filters out all occurrences of 'grep' not just
`grep perl`. To get the equivalent, this line is required.
--
Just my 0.00000002 million dollars worth,
Shawn
"Where there's duct tape, there's hope."
"Perl is the duct tape of the Internet."
Hassan Schroeder, Sun's first webmaster
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/