#!/bin/bash start_date="2017-10-26" for i in `seq 0 30` do num=$((${i}+1)) datatime=`date '+%Y-%m-%d' -d ${start_date}'+'${num}' day'` echo ${datatime} done