Created
August 11, 2017 02:14
-
-
Save damnever/b55b8e93a0faaceec4520c3dc3326147 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "starting" | |
for i in `seq 0 $1`; do | |
$2 & | |
done | |
for job in `jobs -p`; do | |
echo $job | |
wait $job | |
done | |
echo "done." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment