perl -e 'my($Day,$Mon,$Year)=(localtime(time()-N*86400))[3,4,5]; printf("%d%02d%02d/n",$Year+1900,$Mon+1,$Day);'
其中把N替换为任意数字就可以了
perl -e 'my($Day,$Mon,$Year)=(localtime(time()-N*86400))[3,4,5]; printf("%d%02d%02d/n",$Year+1900,$Mon+1,$Day);'
其中把N替换为任意数字就可以了