t.sh 147 B

123456789
  1. iterdate() {
  2. cur="$1"
  3. end="$2"
  4. while [ $cur != $end ]
  5. do
  6. echo php update_cron.php $cur
  7. cur=$(date -d "$cur + 1 day" +%Y-%m-%d)
  8. done
  9. }