shithub: rc

Download patch

ref: 47bd03ff202b601094b2d6cb333bd5e3e535944b
parent: 4f46467797a094df9f6e99c90c28c0468584d313
author: qwx <qwx@sciops.net>
date: Tue Dec 20 10:38:51 EST 2022

lstk: attempt at better proc filtering

--- a/bin/lstk
+++ b/bin/lstk
@@ -11,7 +11,7 @@
 	p=$1
 	shift
 }
-psd $p
+ps -a | grep $p | grep -v 'grep '^$p
 p=`{ps | awk -v 'P='^$p '$7 == P || $2 == P || $6 == P{ p=$2 } END{ print p }'}
 if(~ $#p 0){
 	echo no proc $p >[1=2]