grep | grep | grep .... better way ?
dave selby
dave6502 at googlemail.com
Sat Sep 22 19:54:59 UTC 2007
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 :)
The above returns a true/false depending if script 'motion' is
running - ignoreing motion_watchdog & the grep called by grep motion !
Dave
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
More information about the ubuntu-users
mailing list