plan9fox/rc/bin/kill

8 lines
129 B
Text
Raw Normal View History

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