]> git.lizzy.rs Git - plan9front.git/blob - rc/bin/slay
use /n/other for tmp storage
[plan9front.git] / rc / bin / slay
1 #!/bin/rc
2 U=`{cat /dev/user}
3 for(i){
4         ps | sed -n '/^'$U' .* '$i'$/s%[^ ]*  *%~>/proc/%
5         s%  *.* (.*)%/ctl # \1%
6         s%~%echo kill%p'
7 }