摘要: #!/bin/bashread -p "请输入月份:" month #输入要查找的月份 mon=`date -d "0 month ago" +%m` #计算本月s=${mon:1:2} if [ $month -lt 10 ];thenmc=$[ $month-$s ] #计算本月和输入月份相差几 阅读全文
posted @ 2018-08-17 11:25 划得戳 阅读(1131) 评论(0) 推荐(0)