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