This commit is contained in:
olli 2023-05-17 11:35:29 +02:00
parent bce1a3456c
commit d323c568b5

View File

@ -40,14 +40,14 @@ function analyze {
IFS=$'\n'
local f_strategy
lines=$(egrep "^${ANALYZE_TIME}" "$file" | grep -v ',,' | wc -l)
if [ $lines -lt 40 ]
then
g_echo "Only $lines lines for given timeframe (${ANALYZE_TIME}) in $file - ignoring files with less then 40!"
return 1
fi
#lines=$(egrep "^${ANALYZE_TIME}" "$file" | grep -v ',,' | wc -l)
#if [ $lines -lt 40 ]
#then
# g_echo "Only $lines lines for given timeframe (${ANALYZE_TIME}) in $file - ignoring files with less then 40!"
# return 1
#fi
for line in $(egrep "^${ANALYZE_TIME}" "$file" | grep -v ',,'
for line in $(egrep "^${ANALYZE_TIME}" "$file" | grep -v ',,')
do
IFS="$ORIGIFS"
current=$(echo $line | cut -d, -f2)