more pure bash to speed up things

This commit is contained in:
olli 2023-11-11 17:46:41 +01:00
parent bdb0f540f5
commit 3e43dd5e1b

View File

@ -25,7 +25,7 @@ function get_vars_from_csv {
# create array of last line fields
#f_last_line="$(tail -n1 "${f_ASSET_HIST_FILE}"),${f_market_performance}"
f_last_line="${f_last_lines_array[3]}"
f_last_line="${f_last_lines_array[3]},${f_market_performance}"
readarray -d "," -t f_last_line_array < <(echo "0,${f_last_line}")
readarray -d "," -t f_2_last_line_array < <(echo "0,${f_last_lines_array[2]}")
readarray -d "," -t f_3_last_line_array < <(echo "0,${f_last_lines_array[1]}")