# /bin/sleep 5 &
# echo $!    # process ID of last background command
# wait $!    # wait for job completion


Linux.Shell - Mac.Shell - Bash