1 #!/bin/sh 2 3 for i 4 do 5 psu | awk '$NF ~ /^('$i')$/ {printf("/bin/kill -9 %d # %s\n", $2, $0);}' 6 done