plan9port/bin/kill
2005-01-04 21:14:29 +00:00

14 lines
179 B
Bash
Executable file

#!/bin/sh
sig=""
case "$1" in
-*)
sig=" $1"
shift
;;
esac
for i
do
psu | awk '$NF == "'"$i"'" || $2 == "'"$i"'" {printf("/bin/kill%s %d # %s\n", "'"$sig"'", $2, $0);}'
done