diff --git a/dabo/analyze.sh b/dabo/analyze.sh index 2187f46..1efefc3 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 $(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 "COMPLETE:RESULT:$(basename "$file" | cut -d. -f1):: ${complete_result}% HODL:${hodlresult}% analyze-${analyzedate}/${tmpfile}.log $file" | perl -pe 's/ /\t/g; s/:/ /g' | tee -a ${g_tmp}/output-${tmpfile} echo "=====================================" >>${g_tmp}/output-${tmpfile} echo "${complete_result}" >>${g_tmp}/overall-result-${tmpfile} @@ -162,7 +162,7 @@ echo "First interim result after BUY neutral 0.00: $(grep "BUY: " -A5 analyze-${ echo " Complete Results" >>analyze-${analyzedate}/overall-result.log -grep "COMPLETE-RESULT " analyze-${analyzedate}/analyze-overall.log | grep -v ": 0%" >>analyze-${analyzedate}/overall-result.log +grep "COMPLETE:RESULT:" analyze-${analyzedate}/analyze-overall.log >>analyze-${analyzedate}/overall-result.log echo "