Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jan 2011 01:07:54 -0800
From:      perryh@pluto.rain.com
To:        dscheidt@panix.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: problem with shell script
Message-ID:  <4d2ec0ea.CdxRFqq6dJK4kMYu%perryh@pluto.rain.com>
In-Reply-To: <C756456F-3B1C-4210-BA40-3A064384A038@panix.com>
References:  <4D2DB449.6070901@esiee.fr> <AANLkTimHU7kQXM0agHsfz=hHn2zuBuL4xihDxUWo3%2BvB@mail.gmail.com> <AANLkTikcH9jjNNf-1vwTzgxekH5bp%2BdXnnvh923f1NcM@mail.gmail.com> <AANLkTinkSOUm84RamXn8qToxb5YQG%2BH6VwOtKZJVy7nN@mail.gmail.com> <C756456F-3B1C-4210-BA40-3A064384A038@panix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
David Scheidt <dscheidt@panix.com> wrote:

> ps ax | grep [s]lapd | wc -l
>
> The [] creates a one-character class that doesn't match the regex.

Doesn't [s]lapd need to be quoted?  [] are special to (at least some)
shells.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4d2ec0ea.CdxRFqq6dJK4kMYu%perryh>