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