shithub: riscv

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