more pure bash to speed up things
This commit is contained in:
parent
999d3a25c2
commit
b7cb6a0bf7
@ -73,7 +73,8 @@ function analyze {
|
|||||||
f_sell_score=""
|
f_sell_score=""
|
||||||
f_buy_score=""
|
f_buy_score=""
|
||||||
|
|
||||||
get_vars_from_csv ${file}
|
echo "$line" >>${g_tmp}/${tmpfile}
|
||||||
|
get_vars_from_csv ${g_tmp}/${tmpfile}
|
||||||
|
|
||||||
echo "$f_date"
|
echo "$f_date"
|
||||||
time=$(echo $line | cut -d, -f1 | cut -d: -f1,2)
|
time=$(echo $line | cut -d, -f1 | cut -d: -f1,2)
|
||||||
@ -84,7 +85,7 @@ function analyze {
|
|||||||
f_market_performance_before=${f_market_performance}
|
f_market_performance_before=${f_market_performance}
|
||||||
echo "MARKET_PERF=$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}
|
#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}" ]
|
if [ -f "${g_tmp}/open-${tmpfile}" ]
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user