[SunHELP] egrep w/multiple criteria


Fri Jul 12 08:27:40 CDT 2002


How can I egrep for a process that begins with EXPR1 and also
contains EXPR2.  Where EXPR1 "could" be /this and EXPR2 could be
test.

For example:

> ps -aef | grep -v grep | egrep '^/this&test'
luser  1640  1628  0   Jul 09 ?        1:18 /this/is/a/test

*the above syntax is incorrect



More information about the SunHELP mailing list