From 49d724b87630d8f0b196ce1bbeed958e0037177a Mon Sep 17 00:00:00 2001 From: olli Date: Wed, 10 May 2023 14:48:28 +0200 Subject: [PATCH] small fixes --- dabo/analyze.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dabo/analyze.sh b/dabo/analyze.sh index e059f21..52abd65 100755 --- a/dabo/analyze.sh +++ b/dabo/analyze.sh @@ -40,14 +40,14 @@ function analyze { IFS=$'\n' local f_strategy - lines=$(egrep "^${ANALYZE_TIME}" "$file" | wc -l) - if [ $lines -lt 25 ] + lines=$(egrep "^${ANALYZE_TIME}" "$file" | grep -v ',,' | wc -l) + if [ $lines -lt 50 ] then g_echo "Only $lines lines for given timeframe (${ANALYZE_TIME}) in $file - ignoring files with less then 25!" return 1 fi - for line in $(egrep "^${ANALYZE_TIME}" "$file") + for line in $(egrep "^${ANALYZE_TIME}" "$file" | grep -v ',,') do IFS="$ORIGIFS" current=$(echo $line | cut -d, -f2)