shithub: riscv

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