shithub: riscv

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