<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>oinume</author_name>
  <author_url>https://blog.hatena.ne.jp/oinume/</author_url>
  <blog_title>oinume journal</blog_title>
  <blog_url>https://oinume.hatenablog.com/</blog_url>
  <categories>
    <anon>Linux</anon>
  </categories>
  <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 [ &quot;$CURRENT&quot; = &quot;$END&quot; ]; then break fi CURRENT=`date -d &quot;$CURRENT 1day&quot; +%Y-%m-%d` done NOTE date -d &quot;2017-12-01 1day&quot; returns a next day…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foinume.hatenablog.com%2Fentry%2Floop-over-dates-with-bash-in-linux&quot; title=&quot;Loop over dates with bash in Linux - oinume journal&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://images-fe.ssl-images-amazon.com/images/I/51kz0s-isdL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-01-05 09:00:00</published>
  <title>Loop over dates with bash in Linux</title>
  <type>rich</type>
  <url>https://oinume.hatenablog.com/entry/loop-over-dates-with-bash-in-linux</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
