From 9ee7dffcc391a9f8660c26a7a7138c831abb4b09 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Tue, 11 Mar 2014 18:43:47 -0400 Subject: [PATCH] trying to get psfind working for windoze again. --- scripts/core/functions.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index 16c44739..9740d2a1 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -99,9 +99,10 @@ if [ -z "$skip_all" ]; then # we 'type' the file to get rid of the unicode result from wmic. cmd $flag type "$tmppid" >$PID_DUMP \rm "$tmppid" - local CR=' -' # embedded carriage return. - local appropriate_pattern="s/^.* *\([0-9][0-9]*\)[ $CR]*\$/\1/p" +# local CR=' +#' # embedded carriage return. +# local appropriate_pattern="s/^.* *\([0-9][0-9]*\)[ $CR]*\$/\1/p" + local appropriate_pattern="s/^.* *\([0-9][0-9]*\)*\$/\1/p" for i in "${patterns[@]}"; do PIDS_SOUGHT+=($(cat $PID_DUMP \ | grep -i "$i" \ -- 2.34.1