Posts

Showing posts from March, 2022

shell loop through dates

 Easy command to loop through the dates :  for i in 2022-01-{01..31} 2022-02-{01..15}; do echo $i; done More comprehensive command : d=2015-01-01 while [ " $d " != 2015-02-20 ]; do echo $d d=$(date -I -d " $d + 1 day" ) done