plan9fox/rc/bin/slay
2011-03-30 18:29:07 +00:00

7 lines
133 B
Bash
Executable file

#!/bin/rc
U=`{cat /dev/user}
for(i){
ps | sed -n '/^'$U' .* '$i'$/s%[^ ]* *%~>/proc/%
s% *.* (.*)%/ctl # \1%
s%~%echo kill%p'
}