gringomike
Technical User
Hi All,
What is the grep/egrep command to search for 2 patterns in a "ps -ef" command?
I want to search for all occurances of "pattern 1" and "pattern 2" on the same line.
I thought it was the following but it doesn't work:-(
ps -ef |grep -e 'pattern 1 -e pattern 2'
Help!
Thanks
GM
What is the grep/egrep command to search for 2 patterns in a "ps -ef" command?
I want to search for all occurances of "pattern 1" and "pattern 2" on the same line.
I thought it was the following but it doesn't work:-(
ps -ef |grep -e 'pattern 1 -e pattern 2'
Help!
Thanks
GM