title: ubuntu shell scripting
body: <p>I'm new to shell scripting.  I need to write a script that executes this command to get the process ID's for the tasks...</p>
  
  <pre><code>ps aux | grep java | grep dbConvert2 | awk '{print $2}'
  </code></pre>
  
  <p>then do some other stuff, and then kill the process ID's that I grabbed earlier...</p>
  
  <p>I know I can do kill -9, i just don't know how to dynamically grab all the PID's and store them as variables</p>