shithub: riscv

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