shithub: riscv

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