more pure bash to speed up things

This commit is contained in:
olli 2023-11-11 18:11:04 +01:00
parent 5d531ae3fa
commit 4ab6df1652

View File

@ -51,9 +51,6 @@ function get_vars_from_csv {
#f_last_4_prices=$(tail -n4 "${f_ASSET_HIST_FILE}" | cut -d, -f2) #f_last_4_prices=$(tail -n4 "${f_ASSET_HIST_FILE}" | cut -d, -f2)
#f_last_4_price=$(echo ${f_last_4_prices} | head -n1) #f_last_4_price=$(echo ${f_last_4_prices} | head -n1)
#f_last_4_prices_change=$(g_percentage-diff ${f_last_4_price} ${f_price}) #f_last_4_prices_change=$(g_percentage-diff ${f_last_4_price} ${f_price})
echo "g_percentage-diff ${f_4_last_line_array[2]} ${f_price}" 1>&2
f_last_4_prices_change=$(g_percentage-diff ${f_4_last_line_array[2]} ${f_price}) f_last_4_prices_change=$(g_percentage-diff ${f_4_last_line_array[2]} ${f_price})
# if printf '%s\n' ${f_last_4_prices} | sort -n -C # if printf '%s\n' ${f_last_4_prices} | sort -n -C