码迷,mamicode.com
首页 > 其他好文 > 详细

批量转换目录下所有文件到UTF8

时间:2016-05-17 11:25:59      阅读:116      评论:0      收藏:0      [点我收藏+]

标签:

#!/bin/sh

for i in *
do
iconv -f GBK -t UTF-8 $i >tmp
cp tmp $i
done
rm tmp

 

转: http://blog.163.com/shifteight@126/blog/static/204070602006111541610654/

批量转换目录下所有文件到UTF8

标签:

原文地址:http://www.cnblogs.com/laohehexiaohe/p/5500613.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!