title: How to give arguments to kill via pipe
body: <p>I need to search for a certain process and kill that process. I wrote a command like this:</p>
  
  <pre><code>ps -e | grep dmn | awk '{print $1}' | kill
  </code></pre>
  
  <p>Where the process name is <code>dmn</code>. But it is not working. How can I find processes by name and <code>kill</code> them.</p>