#!/bin/sh
hive -e "use csxuy;show tables;"|grep product_tour2 | while read line
do
echo -n "drop table $line;">>temptables.txt
done
tables=`cat temptables.txt`
echo $tables
hive -e "use csxuy;$tables"
rm temptables.txt
#!/bin/sh
hive -e "use csxuy;show tables;"|grep product_tour2 | while read line
do
echo -n "drop table $line;">>temptables.txt
done
tables=`cat temptables.txt`
echo $tables
hive -e "use csxuy;$tables"
rm temptables.txt
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。