#!/bin/bash
start_date=$1
end_date=$2
curent_date=''
cur_time=''
date_sub=$((($(date +%s -d "$end_date") - $(date +%s -d "$start_date"))/86400));
for (( i = 0; i <= $date_sub; i++ )); do
cur_time=$(($(date +%s -d "$start_date") + $((i * 86400))))
curent_date=$(date -d @$cur_time +"%Y-%m-%d")
echo 'curent_date:' $curent_date
done