From 4579fcd3c6f688fea1723722e31c23e304074e5e Mon Sep 17 00:00:00 2001 From: olli Date: Thu, 25 May 2023 11:06:31 +0200 Subject: [PATCH] fix: summary --- dabo/analyze.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dabo/analyze.sh b/dabo/analyze.sh index 99eb3bf..4237ff9 100755 --- a/dabo/analyze.sh +++ b/dabo/analyze.sh @@ -87,7 +87,7 @@ function analyze { hodlresult=$(g_percentage-diff $(egrep "^${ANALYZE_TIME}" "$file" | grep -v ',,' | head -n1 | cut -d, -f2) $(egrep "^${ANALYZE_TIME}" "$file" | grep -v ',,' | tail -n1 | cut -d, -f2)) - echo "COMPLETE-RESULT ${complete_result}% (HODL:${hodlresult}%) -> $file analyze-${analyzedate}/${tmpfile}.log" | perl -pe 's/ /\t/g' | tee -a ${g_tmp}/output-${tmpfile} + echo "COMPLETE-RESULT $(basename "$file" | cut -d. -f1) ${complete_result}% HODL:${hodlresult}% analyze-${analyzedate}/${tmpfile}.log $file" | perl -pe 's/ /\t/g' | tee -a ${g_tmp}/output-${tmpfile} echo "=====================================" >>${g_tmp}/output-${tmpfile} echo "${complete_result}" >>${g_tmp}/overall-result-${tmpfile} @@ -155,9 +155,9 @@ echo "Interim results: $(grep "INTERIM RESULT: " analyze-${analyzedate}/analyze- echo "Interim results positive: $(grep "INTERIM RESULT: [0-9]" analyze-${analyzedate}/analyze-overall.log | wc -l)" | tee -a analyze-${analyzedate}/overall-result.log echo "Interim results negative: $(grep "INTERIM RESULT: -" analyze-${analyzedate}/analyze-overall.log | wc -l)" | tee -a analyze-${analyzedate}/overall-result.log echo "" | tee -a analyze-${analyzedate}/overall-result.log -echo "First interim result after BUY positive: $(grep "BUY: " -A6 analyze-${analyzedate}/analyze-overall.log | grep "INTERIM RESULT: [0-9]" | grep -v "0.00" | wc -l)" | tee -a analyze-${analyzedate}/overall-result.log -echo "First interim result after BUY negative: $(grep "BUY: " -A6 analyze-${analyzedate}/analyze-overall.log | grep "INTERIM RESULT: -" | wc -l)" | tee -a analyze-${analyzedate}/overall-result.log -echo "First interim result after BUY neutral 0.00: $(grep "BUY: " -A6 analyze-${analyzedate}/analyze-overall.log | grep "INTERIM RESULT: -" | wc -l)" | tee -a analyze-${analyzedate}/overall-result.log +echo "First interim result after BUY positive: $(grep "BUY: " -A5 analyze-${analyzedate}/analyze-overall.log | grep "^INTERIM RESULT: [0-9]" | grep -v "0.00" | wc -l)" | tee -a analyze-${analyzedate}/overall-result.log +echo "First interim result after BUY negative: $(grep "BUY: " -A5 analyze-${analyzedate}/analyze-overall.log | grep "^INTERIM RESULT: -" | wc -l)" | tee -a analyze-${analyzedate}/overall-result.log +echo "First interim result after BUY neutral 0.00: $(grep "BUY: " -A5 analyze-${analyzedate}/analyze-overall.log | grep "^INTERIM RESULT: 0.00" | wc -l)" | tee -a analyze-${analyzedate}/overall-result.log echo "