shithub: riscv

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