title: How to combine "lsof -i :port" and "kill pid" in bash
body: <p>How do i combine these two commands in the bash:</p>
  
  <pre><code>lsof -i :port
  kill pid
  </code></pre>
  
  <p>The first one returns the PID i want to kill to release the port. The second one kills the returned PID.</p>
  
  <p>I am doing this because I don´t know of any way to kill a jetty webserver within the Netbeans IDE on OSX. Is there a way?</p>