将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
#!/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