shithub: riscv

ref: 3bb5168c6f21b38e5b4415419f986b4fa466cbd9
dir: /rc/bin/slay/

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