I have such bash script:
array=( \'2015-01-01\', \'2015-01-02\' ) for i in \"${array[@]}\" do python /home/user/executeJobs.py {i} &> /home/user/
If one wants to loop from input date to any range below can be used, also it will print output in format of yyyyMMdd...
#!/bin/bash in=2018-01-15 while [ "$in" != 2018-01-25 ]; do in=$(date -I -d "$in + 1 day") x=$(date -d "$in" +%Y%m%d) echo $x done