shithub: riscv

ref: 3b376b43af24f8013d330eb2eb9c3b78849bb7c3
dir: /rc/bin/Kill/

View raw version
#!/bin/rc
for(i){
	ps | sed -n '/ '^$i^'$/s%^[^ ]* *([^ ]*).*%chmod 666 /proc/\1/ctl;@{echo kill>/proc/\1/ctl}%p'
}