Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

bash の for で year / month /day を回すとか

More than 1 year has passed since last update.
set -exou pipefail


y_str=2020
for m in {1..2} ; do
    echo ${m}
    for d in {1..31} ; do
        m_str=`printf %02d $m`
        d_str=`printf %02d $d`
        echo ${m_str}-${d_str}
    done
done

for m in {1..2} ; do
    echo ${m}
    for d in {1..31} ; do
        m_str=`printf %02d $m`
        d_str=`printf %02d $d`
        echo ${m_str}-${d_str}
        echo "aws s3 ls 's3://EXAMPLE.COM/LLLLL/YYYY=${y_str}/MM=${m_str}/DD=${d_str}/'";
    done
done
rysk92
sprocket
"Sprocket(スプロケット)は、Webサイトにおけるコンバージョン(購入・入会・資料請求・問合せ等)を増やしたい企業様向けに、自社開発のWeb接客ツールの導入及びコンバージョン改善コンサルティングを行っている会社です。 "
https://www.sprocket.bz/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away