title: Store result of "ps -ax" for later iterating through it
body: <p>When I do</p>
  <pre><code>ps -ax|grep myApp
  </code></pre>
  <p>I get the one line with PID and stuff of my app.</p>
  <p>Now, I'ld liked to process the whole result of ps -ax (without grep, so, the full output):</p>
  <p><strong>Either</strong> store it in a variable and grep from it later</p>
  <p><strong>Or</strong> go through the results in a for loop, e.g. like that:</p>
  <pre><code>for a in $(ps -ax)
  do
   echo $a
  done
  </code></pre>
  <p>Unfortunally, this splits with every space, not with newline as |grep does it.</p>
  <p>Any ideas, how I can accomplish one or the other (grep from variable or for loop)?</p>
  <p><strong>Important:</strong> No bash please, only POSIX, so #!/bin/sh</p>
  <p>Thanks in advance</p>