more pure bash to speed up things
This commit is contained in:
parent
9d1738f7e9
commit
9b21a48fa8
@ -21,9 +21,9 @@ function get_vars_from_csv {
|
||||
#f_last_line="$(tail -n1 "${f_ASSET_HIST_FILE}"),${f_market_performance}"
|
||||
f_last_line="${f_last_lines[3]}"
|
||||
readarray -d "," -t f_last_line_array < <(echo "0,${f_last_line}")
|
||||
readarray -d "," -t f_2_last_line_array < <(echo "0,${f_last_line[2]}")
|
||||
readarray -d "," -t f_3_last_line_array < <(echo "0,${f_last_line[1]}")
|
||||
readarray -d "," -t f_4_last_line_array < <(echo "0,${f_last_line[0]}")
|
||||
readarray -d "," -t f_2_last_line_array < <(echo "0,${f_last_lines[2]}")
|
||||
readarray -d "," -t f_3_last_line_array < <(echo "0,${f_last_lines[1]}")
|
||||
readarray -d "," -t f_4_last_line_array < <(echo "0,${f_last_lines[0]}")
|
||||
|
||||
f_asset=$(basename ${f_ASSET_HIST_FILE} | cut -d\. -f1)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user