title: bash while loop threading
body: <p>i have a while loop reading lines from a <code>$hosts</code></p>
  
  <pre><code>while read line
  do
      ip=$line
      check
  done &lt; $hosts
  </code></pre>
  
  <p>my question is can I use some way to speed this up or run the check on 10 hosts at a time and each check is on a different IP and finish when all IP in <code>$host</code> have been checked?
  Thanks </p>