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"