shithub: riscv

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