用法:
实际应用:
批量转换文件编码:
[[email protected] PCK]$ for tfile in `ls -l|awk ‘{print $9}‘`;do echo "iconv -f gbk -t utf-8 "$tfile" -o "$tfile".utf-8";done|tee tochar.sh iconv -f gbk -t utf-8 GcDocument_yl.pck -o GcDocument_yl.pck.utf-8 iconv -f gbk -t utf-8 GcEstLossUpdate.pck -o GcEstLossUpdate.pck.utf-8 iconv -f gbk -t utf-8 GcMedicalOsModify.pck -o GcMedicalOsModify.pck.utf-8
时间: 2024-11-05 05:58:10