shithub: riscv

ref: 1ae5fc01a6e9c6fb1a1befd4c60653a6af10a9e0
dir: /rc/bin/slay/

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