#在指定日期运行today=$(date+%Y-%m-%d)month=${today:5:2}date=${today:8:2}if["$date"!="4"];thenecho"itwillberunatyyyy-MM-04"exitfi#只保留两个月functioncheck_dir(){dir_name=$1if["${today:0:4}"="${dir_name:0:4}"];thenmdstr=${dir_name#*"-"}mstr=${mdstr%"-"*}if["$...
查看全文