more pure bash to speed up things
This commit is contained in:
parent
999d3a25c2
commit
b7cb6a0bf7
@ -72,8 +72,9 @@ function analyze {
|
|||||||
do
|
do
|
||||||
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