I want to use ps -ef | grep \"keyword\" to determine the pid of a daemon process (there is a unique string in output of ps -ef in it).
ps -ef | grep \"keyword\"
I can kill the pr
ps -ef | grep KEYWORD | grep -v grep | awk '{print $2}'