problem with shell script

perryh at perryh at
Thu Jan 13 09:11:45 UTC 2011

David Scheidt <dscheidt at> 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)

More information about the freebsd-questions mailing list