run multiple commands in parallel


pids=""

for i in `seq 0 9`; do
   doCalculations $i &
   pids="$pids $!"
done

wait $pids

Date: 2017-07-20

Tags:  bash

Share: