#
#Truncate a datafile to hold only the last 120 days
#
#jq -Rc 'fromjson? | map(select(.TS >= (now - 120 * 86400))) | select(length > 0)' datafile > datafile.tmp
#cat datafile.tmp datafile
#rm datafile.tmp
