shithub: riscv

ref: f4617dc7db28cd75e73bbe0044aa6bfc6941bfe5
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'
}