1. #!/bin/bash
  2. for DATE in {20100731..20100802};do
  3.         DAY=`echo $DATE | cut -b 7-`
  4.         if [[ $DAY -le 31 ]] && [[ $DAY -ne 00 ]]; then
  5.         echo $DAY
  6.         fi
  7. done
复制代码