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目录下。

随机日志

One Response to “GBK-UTF-8文件编码批量转换脚本”

  1. hookah Says:

    受教了


留下您的脚印