title: Getting pids from ps -ef |grep keyword
body: <p>I want to use <code>ps -ef | grep "keyword"</code> to determine the pid of a daemon process (there is a unique string in output of ps -ef in it).</p>
  
  <p>I can kill the process with <code>pkill keyword</code> is there any command that returns the pid instead of killing it? (pidof or pgrep doesnt work)</p>