There are many times that I have created a shell file that lists a bunch of commands that I want to run. Typically I just run
sh filename.sh which will run them sequentially. I knew there had to be a linux command out there to run some number of lines in the file in parallel rather than running all of them sequentially. And there is, it is called parallel.
To run it I created a text file containing all the commands I wanted to run and then did:
parallel -P 3 -a <filename>
This ran 3 lines at the same time from the file. If the -P is not specified then it will run it based on the number of cores (100% utilization).