grep | grep | grep .... better way ?

Radoulov, Dimitre cichomitiko at gmail.com
Sat Sep 22 20:55:50 UTC 2007


dave selby wrote:
> Hi,
> 
> I am using a grep sequence of ..
> 
> ps ax | grep motion | grep -v motion_watchdog.sh | grep -v grep
> 
> is there a way for grep to be used without re-calling it with seperate
> -v's ? I dimly recal there is but man grep left me with a headache :)
[...]

ps ax|grep 'motion$'



Dimitre







More information about the ubuntu-users mailing list