fix no num data

This commit is contained in:
olli 2024-11-05 13:54:49 +01:00
parent 5536abbd0b
commit bae56de644

View File

@ -130,7 +130,7 @@ function get_marketdata {
# on first download # on first download
if ! [ -s "${f_histfile}" ] if ! [ -s "${f_histfile}" ]
then then
cat "${f_histfile}.tmp" | sort -k1,1 -t, -u >"${f_histfile}" grep ^[2-9] "${f_histfile}.tmp" | sort -k1,1 -t, -u >"${f_histfile}"
else else
# merge data # merge data
egrep -h ^[0-9][0-9][0-9][0-9]-[0-9][0-9] "${f_histfile}" "${f_histfile}.tmp" | sort -k1,1 -t, -u >"${g_tmp}/${FUNCNAME}.tmp" egrep -h ^[0-9][0-9][0-9][0-9]-[0-9][0-9] "${f_histfile}" "${f_histfile}.tmp" | sort -k1,1 -t, -u >"${g_tmp}/${FUNCNAME}.tmp"