GBK-UTF-8文件编码批量转换脚本
八月 23rd, 2009 Posted in Shell | 阅读次数: 325 次
find default -type d -exec mkdir -p utf/{} \;
find default -type f -exec iconv -f GBK -t UTF-8 {} -o utf/{} \;
这两行命令将default目录下的文件由GBK编码转换为UTF-8编码,目录结构不变,转码后的文件保存在utf/default目录下。
四月 13th, 2010 at 16:37
受教了