iterdate.sh 138 B

12345678
  1. #!/bin/bash
  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