title: How can I execute parallel "for" loops in Bash?
body: <p>I have been trying to parallelize the following script, specifically the for loop. How can I do that?</p>
  
  <pre><code>#!/bin/bash
  for i in `cat /root/vms`;
  do
      /usr/bin/sshpass -p 'test' /usr/bin/ssh -o StrictHostKeyChecking=no \
          -l testuser $i -t 'echo test | sudo -S yum update -y'
  done
  </code></pre>