在Linux停将整个目录的文件转换字符编码的脚本

在Linux下将整个目录的文件转换字符编码的脚本源文件编码:gbk源文件名称模式:*.ftl.gbk目标文件编码:utf8

在Linux下将整个目录的文件转换字符编码的脚本

源文件编码:gbk

源文件名称模式:*.ftl.gbk

目标文件编码:utf8

目标文件名称模式:*.ftl

?

脚本:to_utf8.sh

?

执行示例:

?

当有新的文件或新的修改时

[root@s170 ws1_hndy_wapmoban]# ./to_utf8.sh
convert sitemap.ftl.gbk to sitemap.ftl ...
[root@s170 ws1_hndy_wapmoban]#

?

当没有修改时

[root@s170 ws1_hndy_wapmoban]# ./to_utf8.sh
[root@s170 ws1_hndy_wapmoban]#

?

本文链接:http://codingstandards.iteye.com/blog/1563470

?

?