shithub: riscv

ref: e391b7ec8c0dc746a70725f3fc598def0419d1e6
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'