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