0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

指定した期間の日付文字列を得る

Last updated at Posted at 2019-05-16

date コマンドを利用しているので、うるう年も対応してます。

$ for D in $(seq $(date -d'2016/2/25' +%s) 86400 $(date -d'2016/3/2' +%s)); do date -d@$D +'%Y/%m/%d';done
2016/02/25
2016/02/26
2016/02/27
2016/02/28
2016/02/29
2016/03/01
2016/03/02
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?