Created
July 13, 2016 14:04
-
-
Save developer-sdk/80d1e4df668a876bfbb5558a9926e4fb to your computer and use it in GitHub Desktop.
시작일자와 종료일자를 이용한 루프문
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| startDate=`date +"%Y%m%d" -d "20160101"` | |
| endDate=`date +"%Y%m%d" -d "20160701"` | |
| while [ "$startDate" != "$endDate" ] ; | |
| do | |
| startDate=`date +"%Y%m%d" -d "$startDate + 1 day"`; | |
| echo $startDate | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment