日期循环调用:
function times()
{
start=$1
end=$2
temp=$start
while true; do
temp=date +%Y-%m-%d -d "$temp 1 days "
echo "$temp"
if [ "$end" = "$temp" ]; then
break;
else
fi
done
}
日期循环调用:
function times()
{
start=$1
end=$2
temp=$start
while true; do
temp=date +%Y-%m-%d -d "$temp 1 days "
echo "$temp"
if [ "$end" = "$temp" ]; then
break;
else
fi
done
}
相关阅读