[Tipz] byebye grep -v grep
Ari Pollak
ari at ccs.neu.edu
Fri Jan 31 11:11:15 EST 2003
Hm, that doesn't exclude grep for me on either the new GNU grep or on
the old GNU grep installed in /arch/gnu on the Solaris machines, or even
with the one in /bin on the Solaris machines.
David N. Blank-Edelman wrote:
> Howdy-
> Got this one from the O'Reilly Mason book.
>
> We're all pretty used to using a variation of this idiom:
>
> ps -ef|grep something|grep -v grep
>
> instead, try:
>
> ps -ef|grep '[s]omething'
>
> for example:
>
> ps -ef|grep '[d]nb'
>
> Cool, no?
>
> -- dNb
More information about the Tipz
mailing list