From bae56de644cb68b7ee9b4b9c2fb3423f1908ba56 Mon Sep 17 00:00:00 2001 From: olli Date: Tue, 5 Nov 2024 13:54:49 +0100 Subject: [PATCH] fix no num data --- dabo/functions/get_marketdata.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dabo/functions/get_marketdata.sh b/dabo/functions/get_marketdata.sh index 1568560..8535e06 100644 --- a/dabo/functions/get_marketdata.sh +++ b/dabo/functions/get_marketdata.sh @@ -130,7 +130,7 @@ function get_marketdata { # on first download if ! [ -s "${f_histfile}" ] 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 # 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"