如何在 Bash 中打印当前时间前一天的日期?
如果你有 GNU 日期并且我理解正确的话
$ date +%Y:%m:%d -d "yesterday" 2009:11:09
or
$ date +%Y:%m:%d -d "1 day ago" 2009:11:09