title: Kill "loginwindow" process using command line in Mac OS X
body: <p>So far, I have written the following unix command:</p>
  
  <pre><code>ps -Ajc | grep loginwindow | cut -c 16-20 | sed 's/ //g'
  </code></pre>
  
  <p>This grabs the "loginwindow" process, filters it using cut and sed to return the number of the "loginwindow" process.</p>
  
  <p>I'd like to know how to use the number retrieved to the process.</p>
  
  <p>Thank you.</p>