dateOfMon=`for((i=0;i<7;i++)); do if [ \`date -d "-$i days" +%w\` = 1 ]; then date -d "-$i days" +%Y%m%d; fi; done`
转载于:https://www.cnblogs.com/yanyichao/p/3831918.html
dateOfMon=`for((i=0;i<7;i++)); do if [ \`date -d "-$i days" +%w\` = 1 ]; then date -d "-$i days" +%Y%m%d; fi; done`
转载于:https://www.cnblogs.com/yanyichao/p/3831918.html