awk -F ',' '{split ($2,a,"-");split ($3,b,"-"); S[a[1]"\t"b[1]]++}END{for (s in S) print s"\t"S[s]}' huanji_2016_ori-2.csv |sort -r -n -t$'\t' -k3 >huanji_brand_2016.txt
awk -F "," '{split($2,a,"-");split($3,b,"-");if(a[1]=="苹果") S[a[1]"\t"b[2]]++}END{for (s in S) print s"\t"S[s]}' huanji_2016_ori-2.csv |sort -r -n -t$'\t' -k3
awk -F "\t" '{split($2,a,"-");split($3,b,"-");if(a[1]=="vivo" && b[1]=="华为") print $4}' huanji_2016_ori-2.csv >vivo_to_华为.txt
awk -F ',' '{split ($2,a,"-");split ($3,b,"-"); S[a[2]”\t”b[2]]++}END{for (s in S) print s"\t"S[s]}' huanji_2016_ori-2.csv |sort -r -n -t$'\t' -k3