zombies 142 B

12345
  1. #!/bin/bash
  2. ps aux | awk '{ print $8 " " $2 }' | grep -w Z | awk '{ print $2 }' | while read pid; do
  3. echo "PID: $pid";
  4. pstree $pid;
  5. done;