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.