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