#!/bin/bash
start_date=2021-11-04
end_date=2021-11-06
while [[ $start_date < $end_date ]]
do
date=`date -d "$start_date" +"%Y-%m-%d"`
hive -e"
select * from table ;"
echo "$date執行完畢"
start_date=`date -d " +1 day $date" +"%Y-%m-%d"`
done;
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/390593.html
標籤:其他
上一篇:GitHub瘋傳15k+的《SpringBoot+vue全堆疊開發實戰專案》太香了
下一篇:02HDFS分布式文系統
