Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. 2010 1 1 00 00 00
  2. 2010 1 1 00 20 00
  3. 2010 1 1 00 30 00
  4. 2010 1 1 00 40 00
  5. 2010 1 1 01 00 00
  6. 2010 1 1 01 20 00
  7. 2010 1 1 01 30 00
  8. 2010 1 1 01 40 00
  9.  
  10. ...
  11. 2010 2 1 00 00 00
  12.  
  13. startdate=2010-01-01-00-00-00
  14. enddate=2010-02-01-00-00-00
  15.  
  16. curr="$startdate"
  17. while true; do
  18. echo "$curr"
  19. [ "$curr" < "$enddate" ] || break
  20. curr=$( date +%Y-%m-%d-%H-%M-%S --date "$curr +10 minutes" )
  21. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement