shithub: riscv

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