shithub: riscv

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