0byt3m1n1
Path:
C:
/
Program Files
/
R
/
R-4.2.2
/
library
/
xfun
/
scripts
/
[
Home
]
File: child-pids.sh
# given a PID, output all its child PIDs recursively list_children() { for j in $(pgrep -P $1); do echo $j echo $(list_children $j) done } for i in $@; do list_children $i done