SyntaxFix
Write A Post
Hire A Developer
Questions
I know that is old, but that is the better solution that i found:
killtree() { for p in $(pstree -p $1 | grep -o "([[:digit:]]*)" |grep -o "[[:digit:]]*" | tac);do echo Terminating: $p kill $p done }