cat user6.csv|awk ‘BEGIN{FS=",";OFS="|"}{print $1,$2}‘>user_consu6.csv cat consu6.csv|awk ‘BEGIN{FS="|";OFS="|"}{if(length($2)<=5) print $0}‘>user_consu6.csv sed ‘s/\./|/g‘ user_consu6.csv>user6.csv
create table user_comsu6(
mdn char(18),
chag_earn decimal(6,2))
load table user_comsu6(
mdn ‘|‘,
chag_earn 0x0a)
using file ‘/xwtec210/data/wlan/user060aa‘
escapes off
quotes off
go
cat user7.csv|awk ‘BEGIN{FS="|";OFS="|"}{print $1,$2}‘>user_consu7.csv cat consu7.csv|awk ‘BEGIN{FS="|";OFS="|"}{if(length($2)<=5) print $0}‘>user_consu7.csv sed ‘s/\./|/g‘ user7.csv>user_consu7.csv
create table user_comsu7(
mdn char(18),
chag_earn decimal(6,2))
load table user_comsu7(
mdn ‘|‘,
chag_earn 0x0a)
using file ‘/xwtec210/data/wlan/consu7.csv‘
escapes off
quotes off
go
时间: 2024-10-14 00:29:30