From b7cb6a0bf7ba23f3c0f72249bfaa2dfe1395c7c5 Mon Sep 17 00:00:00 2001 From: olli Date: Sun, 12 Nov 2023 17:44:30 +0100 Subject: [PATCH] more pure bash to speed up things --- dabo/analyze.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dabo/analyze.sh b/dabo/analyze.sh index f8c8a21..9fb3cba 100755 --- a/dabo/analyze.sh +++ b/dabo/analyze.sh @@ -72,8 +72,9 @@ function analyze { do f_sell_score="" f_buy_score="" - - get_vars_from_csv ${file} + + echo "$line" >>${g_tmp}/${tmpfile} + get_vars_from_csv ${g_tmp}/${tmpfile} echo "$f_date" time=$(echo $line | cut -d, -f1 | cut -d: -f1,2) @@ -84,7 +85,7 @@ function analyze { f_market_performance_before=${f_market_performance} echo "MARKET_PERF=$f_market_performance" - echo "$line" >>${g_tmp}/${tmpfile} + #echo "$line" >>${g_tmp}/${tmpfile} #echo " ${line},${f_market_performance}" | perl -pe 's/([0-9].[0-9][0-9][0-9][0-9][0-9][0-9])[0-9]+/$1/g' | column -t -s, >>${g_tmp}/output-${tmpfile} if [ -f "${g_tmp}/open-${tmpfile}" ] then