shithub: riscv

ref: f508dfaab17c0ec9519078db82c9d5b5f1ba76a5
dir: /rc/bin/kill/

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