Options (4)
-t, --timeoutbooleanSleep for at most `n` seconds
Example:
waitpid {{[-t|--timeout]}} {{n}} {{pid1 pid2 ...}}-e, --exitedbooleanDo not error if specified PIDs have already exited
Example:
waitpid {{[-e|--exited]}} {{pid1 pid2 ...}}-c, --countbooleanSleep until `n` of the specified processes have exited
Example:
waitpid {{[-c|--count]}} {{n}} {{pid1 pid2 ...}}-h, --helpbooleanDisplay help
Example:
waitpid {{[-h|--help]}}made by @shridhargupta | data from tldr-pages