Bash wait Command

wait is a command that waits for the given jobs to complete and returns the exit status of the waited for command. Since the wait command affects the current shell …