shithub: riscv

ref: 6c7d0aeb7d937a3dcf924f1ef2952ee6c7aa9eb3
dir: /rc/bin/slay/

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