[NTLUG:Discuss] keep grep command out of the results of a "ps | grep" *Solved but why?*

Eric Waguespack ewaguespack at gmail.com
Thu Dec 11 16:24:59 CST 2008


> fwiw, running...
>  ps awx | grep 'a\getty.*tty2'
> ...works as well as the single backslash doesn't then have to be escaped.
> Richard
>

I have always just used this syntax:

ps awx | grep [a]getty.*tty2

saves you a character



More information about the Discuss mailing list