shithub: riscv

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