wait

wait

The manual page and help for the wait built-in Bash command. The wait command waits for the process with the specified ID to complete. If no ID is specified, the command waits for all child processes to complete.