shithub: riscv

ref: a2fb8e4289917d29e551bab5efe52a55df683653
dir: /rc/bin/kill/

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