awk 固定行数合并 Posted on 2012-07-03 In Linux 希望将以下数据: A1B2C3 合并成: A,1B,2C,3 1awk '{if(NR%2==0){printf("%s\n",$1)}else{printf("%s,",$1)}}' test