{"height":"190","type":"rich","url":"https://oinume.hatenablog.com/entry/loop-over-dates-with-bash-in-linux","author_url":"https://blog.hatena.ne.jp/oinume/","version":"1.0","author_name":"oinume","description":"Here is an example of looping over dates from 2017-10-22 to 2017-12-31. #!/bin/bash START=2017-10-22 END=2017-12-31 CURRENT=$START while true; do echo $CURRENT if [ \"$CURRENT\" = \"$END\" ]; then break fi CURRENT=`date -d \"$CURRENT 1day\" +%Y-%m-%d` done NOTE date -d \"2017-12-01 1day\" returns a next day\u2026","blog_url":"https://oinume.hatenablog.com/","provider_name":"Hatena Blog","blog_title":"oinume journal","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Foinume.hatenablog.com%2Fentry%2Floop-over-dates-with-bash-in-linux\" title=\"Loop over dates with bash in Linux - oinume journal\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":"https://images-fe.ssl-images-amazon.com/images/I/51kz0s-isdL._SL160_.jpg","published":"2018-01-05 09:00:00","title":"Loop over dates with bash in Linux","categories":["Linux"],"provider_url":"https://hatena.blog"}