shithub: riscv

ref: f7a296922b2616ddd5c3d753d4f0f165a2ea5215
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'
}