原帖由 coolsail 于 2008-7-30 09:13 发表 如何返回前一天的日期,以20080729的形式返回. 开始我是用的 today=`date "+%Y%m%d"` yesterday=`expr $today - 1` 这样如果8月1号的话肯定会有错. 大家指点一下