自动化实现上传文件到表
#!/bin/bash
. /etc/profile
. ~/.bash_profile
. ~/.bashrc
error() {
if [[ $? != 0 ]]; then
echo "$@ 运行失败"
exit 1
fi
}
# 待上传表名
inset_table_name=$1
# 待上传文件名
file_name=$2
# 分区名
pt=$3
load_path="/tmp/load_path/"
curr_date=`