title: How do I use the output of a command in a for loop in bash?
body: <p>I'm trying to use the output of this in a for loop:</p>
  
  <pre><code>$wc -l example.mgn | awk '{print $1}'
  12
  </code></pre>
  
  <p>however, I get this:  </p>
  
  <pre><code>for i in {1..`wc -l example.mgn | awk '{print $1}'`}; do echo $i; done
  {1..12}
  </code></pre>