wait [ n ]
wait
n
Wait for all background processes to complete, and report their termination status. Used in shell scripts. If n is specified, wait only for the process with process ID n .