```powershell
#!/bin/bash
month_first_d=`date -d"$(date -d"1 month" +"%Y%m01")" +"%Y%m%d"`
echo "下月第一天${month_first_d}"
month_last_d=`date -d"$(date -d"2 month" +"%Y%m01") -1 day" +"%Y%m%d"`
echo "下月最后一天:${month_last_d}"
aa=(/test1/ /test2/ /test3/)
echo "循环建文件夹"
for ((i=${month_first_d}; i<=${month_last_d}; i++))
do
for j in ${aa[@]}
do
echo "创建命令:mkdir -p ${j}${i}"
mkdir -p ${j}${i}
done
done
exit 0;