plan9fox/rc/bin/kill

7 lines
129 B
Bash
Executable file

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