Wait for jobs in the background and measure time taken Posted on June 26, 2017 by admin SECONDS=0;sleep 5 & sleep 6 & sleep 3 & sleep 7 & wait ; elapsedseconds=$SECONDS ; echo $elapsedseconds nJoy 😉