#!/bin/bashfor DATE in {20100731..20100802};do DAY=`echo $DATE | cut -b 7-` if [[ $DAY -le 31 ]] && [[ $DAY -ne 00 ]]; then echo $DAY fidone复制代码