date date +%Y%m%d -d "1 day ago" https://www.cyberciti.biz/tips/linux-unix-get-yesterdays-tomorrows-date.html