problem with shell script

perryh at pluto.rain.com perryh at pluto.rain.com
Thu Jan 13 09:11:45 UTC 2011


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


More information about the freebsd-questions mailing list