Tips
dateコマンドで日付の計算
sample $:date --date "2021/02/06 1day ago" "+%Y/%m/%d"
2021/02/05
sample $:date --date "2021/02/06 23:59 2 minute" "+%Y/%m/%d %H:%M"
2021/02/07 00:01
sample $:date --date "2021/02/06 1day ago" "+%Y/%m/%d"
2021/02/05
sample $:date --date "2021/02/06 23:59 2 minute" "+%Y/%m/%d %H:%M"
2021/02/07 00:01