The wait command waits for a process to complete before proceeding.
# To wait for given process id (pid) to finish and return its exit status:
wait <pid>
# To wait for all processes known to the invoking shell to finish:
wait
The wait command waits for a process to complete before proceeding.
# To wait for given process id (pid) to finish and return its exit status:
wait <pid>
# To wait for all processes known to the invoking shell to finish:
wait