fix no num data
This commit is contained in:
parent
5536abbd0b
commit
bae56de644
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user