bash shell date parsing, start with specifc date and loop through each day in month
Posted
by Joe Stein
on Stack Overflow
See other posts from Stack Overflow
or by Joe Stein
Published on 2010-04-16T20:22:32Z
Indexed on
2010/04/17
0:03 UTC
Read the original article
Hit count: 182
Hi, I need to create a bash shell script starting with a day and then loop through each subsequent day formatting that output as %Y_%m_d
I figure i can submit a start day and then another param for the number of days.
My issue/question is how to set a DATE (that is not now) and then add a day.
so my input would be 2010_04_01 6
my output would be
2010_04_01 2010_04_02 2010_04_03 2010_04_04 2010_04_05 2010_04_06
Thanks
© Stack Overflow or respective owner