shithub: riscv

ref: a99b0166432f1773ae50811c34d43f0c19ab2fa5
dir: /rc/bin/broke/

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