shithub: riscv

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