将GB2312转码成UTF-8

#!/bin/bash

var=`find .`
for i in $var
do
if [ -f "$i" ]
then
echo $i
iconv -f GB2312 -t UTF-8 $i > tmp
rm $i
mv tmp $i
fi
done

posted on 2012-05-20 09:53  bluebbc  阅读(867)  评论(0编辑  收藏  举报

导航