fork(13) download
  1. #!/bin/bash
  2.  
  3. datestart="2013-06-01 00:00:00"
  4. dateend="2013-07-05 00:00:00"
  5.  
  6. date1="$datestart"
  7. while [[ "$date1" != "$dateend" ]]; do
  8. date1="$(date -u --date="$date1 tomorrow" '+%Y-%m-%d %H:%M:%S')"
  9. echo "$date1"
  10. done
Success #stdin #stdout 0.04s 5268KB
stdin
Standard input is empty
stdout
2013-06-02 00:00:00
2013-06-03 00:00:00
2013-06-04 00:00:00
2013-06-05 00:00:00
2013-06-06 00:00:00
2013-06-07 00:00:00
2013-06-08 00:00:00
2013-06-09 00:00:00
2013-06-10 00:00:00
2013-06-11 00:00:00
2013-06-12 00:00:00
2013-06-13 00:00:00
2013-06-14 00:00:00
2013-06-15 00:00:00
2013-06-16 00:00:00
2013-06-17 00:00:00
2013-06-18 00:00:00
2013-06-19 00:00:00
2013-06-20 00:00:00
2013-06-21 00:00:00
2013-06-22 00:00:00
2013-06-23 00:00:00
2013-06-24 00:00:00
2013-06-25 00:00:00
2013-06-26 00:00:00
2013-06-27 00:00:00
2013-06-28 00:00:00
2013-06-29 00:00:00
2013-06-30 00:00:00
2013-07-01 00:00:00
2013-07-02 00:00:00
2013-07-03 00:00:00
2013-07-04 00:00:00
2013-07-05 00:00:00