shithub: riscv

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