more pure bash to speed up things
This commit is contained in:
parent
b7e10bc365
commit
be21204f2b
@ -1,6 +1,5 @@
|
|||||||
function get_vars_from_csv {
|
function get_vars_from_csv {
|
||||||
|
|
||||||
set -x
|
|
||||||
|
|
||||||
f_ASSET_HIST_FILE="$1"
|
f_ASSET_HIST_FILE="$1"
|
||||||
if ! [ -s "${f_ASSET_HIST_FILE}" ]
|
if ! [ -s "${f_ASSET_HIST_FILE}" ]
|
||||||
@ -15,7 +14,6 @@ function get_vars_from_csv {
|
|||||||
fi
|
fi
|
||||||
f_all_vars="f_market_performance=${f_market_performance}"
|
f_all_vars="f_market_performance=${f_market_performance}"
|
||||||
|
|
||||||
set -x
|
|
||||||
# read last 4 lines in array if not given
|
# read last 4 lines in array if not given
|
||||||
if [ -z "${f_last_lines_array}" ]
|
if [ -z "${f_last_lines_array}" ]
|
||||||
then
|
then
|
||||||
@ -33,6 +31,8 @@ function get_vars_from_csv {
|
|||||||
readarray -d "," -t f_3_last_line_array < <(echo "0,${f_last_lines_array[1]}")
|
readarray -d "," -t f_3_last_line_array < <(echo "0,${f_last_lines_array[1]}")
|
||||||
readarray -d "," -t f_4_last_line_array < <(echo "0,${f_last_lines_array[0]}")
|
readarray -d "," -t f_4_last_line_array < <(echo "0,${f_last_lines_array[0]}")
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
# remove f_last_lines_array
|
# remove f_last_lines_array
|
||||||
unset f_last_lines_array
|
unset f_last_lines_array
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user