shithub: riscv

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