more pure bash to speed up things

This commit is contained in:
olli 2023-11-11 17:13:24 +01:00
parent 1cfe4a6894
commit 631081e209

View File

@ -20,6 +20,7 @@ function get_vars_from_csv {
#f_last_line="$(tail -n1 "${f_ASSET_HIST_FILE}"),${f_market_performance}"
f_last_line="${f_last_lines[3]}"
echo "f_last_line: ${f_last_line}" 1>&2
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[2]}")
readarray -d "," -t f_3_last_line_array < <(echo "0,${f_last_lines[1]}")