better analyze.sh output

This commit is contained in:
olli 2023-05-25 11:28:09 +02:00
parent 8ade3f4edf
commit d9398b4fcc

View File

@ -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)) 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 "=====================================" >>${g_tmp}/output-${tmpfile}
echo "${complete_result}" >>${g_tmp}/overall-result-${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 " echo "
Complete Results" >>analyze-${analyzedate}/overall-result.log 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 " echo "