dt=2022-01-01 linux dt=`date -d "$dt -i day" +"%Y-%m-%d"` # mac dt=`date -v+1d -j -f "%Y-%m-%d" "${dt}" "+%Y-%m-%d"`