Hi All,
I join 2 files matching columns like
awk 'BEGIN{FS=",";OFS=","}
NR==FNR{a[$1]=$1;b[$1]=$23;c[$1]=$44;next} $1 in a {print a[$1],$1,b[$1],c[$1], $2, $3, $4, $5}'
filq
e1.csv file2.csv > joined.csv
I have headers in file1.csv and file2,csv.How to keep corresponding headers in joined.csv file
thanks
oliver
I join 2 files matching columns like
awk 'BEGIN{FS=",";OFS=","}
NR==FNR{a[$1]=$1;b[$1]=$23;c[$1]=$44;next} $1 in a {print a[$1],$1,b[$1],c[$1], $2, $3, $4, $5}'
filq
e1.csv file2.csv > joined.csv
I have headers in file1.csv and file2,csv.How to keep corresponding headers in joined.csv file
thanks
oliver