shithub: riscv

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