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