script

Sep 6, 2021 at 10:17pm
Write a script which takes a PID as an argument and prints PID's of all its GRANDchildren and grandgrandchildren.
Example:

$ printthem 3545
3546
3548
3666
Topic archived. No new replies allowed.