List all child processes
pstree -alp | awk -v 'find=yum' 'BEGIN{n=99} {o=split($0,b,"|");if(o>=n){print;}else{n=99;}} $0 ~ find {n=split($0,a,"|");print}'
This isn't perfect, but it's useful. Share your modifications to it!
Preserving for the future: Shell scripts, AoC, and more
pstree -alp | awk -v 'find=yum' 'BEGIN{n=99} {o=split($0,b,"|");if(o>=n){print;}else{n=99;}} $0 ~ find {n=split($0,a,"|");print}'
This isn't perfect, but it's useful. Share your modifications to it!
Comments