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)