ref: cf449063965d4727993882e977f656191d1346dc 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' }