1、只打印第一列awk -F',' '{print $1}' 1.txt
3、aw氯短赤亻k可以做统计。例如将第一列求和。awk -F',' '{sum += $1;} END{print "sum = ",sum}' 1.txt