plan9fox/rc/bin/slay
2011-08-27 21:51:41 +02:00

8 lines
136 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'
}