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

dave selby dave6502 at
Sat Sep 22 19:54:59 UTC 2007


I am using a grep sequence of ..

ps ax | grep motion | grep -v | 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 :)

The above returns a true/false depending if script 'motion'  is
running - ignoreing motion_watchdog & the grep called by grep motion !



Please avoid sending me Word or PowerPoint attachments.

More information about the ubuntu-users mailing list