This question already has answers here: How do you run multiple programs in parallel from a bash script?