title: How do I assign the result of eval to variable in bash script?
body: <p>I have a bash script that returns a list, which is what I want, but I need to put the results in a variable so I can operate on them one at a time in a for loop.</p>
  
  <pre><code>#!/bin/bash
  processID="ps aux | grep `date +"%b"` | gawk '{print \$2}'"
  
  eval $processID
  </code></pre>
  
  <p>How do I assign the result of eval to a variable?
  Thanks</p>