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
. wait
is a built-in command in the Bourne, Korn, and C shells. See Chapter 4
and Chapter 5
for more information.