[root@supermaster scripts]# cat Hma.sh iconv -f utf-8 -t gb2312 aomen1.file > aaa.txt cat aomen.txt | gawk '{printf "%s,%s,%s,%s\n",$1,$2,$3,$4}' >> aomen.file