for i in `find ./ -name *.htm` ; do echo $i;iconv -f gb18030 -t utf8 $i -o /tmp/iconv.tmp;mv /tmp/iconv.tmp $i; done
------------------------------------------------------------------------------------------
find -name “*.htm“ \
-exec iconv -f gb2312 -t utf8 ‘{}‘ -o /tmp/iconv.tmp \; \
-exec mv /tmp/iconv.tmp ‘{}‘ \;
------------------------------------------------------------------------------------------
exts=( htm php tpl html )
for ext in ${exts[*]}
do
for i in `find /data/GCIMOP/ -name *.$ext`
do
echo -e "$i-$ext"
iconv -f gbk -t utf8 $i -o /tmp/iconv.tmp
mv /tmp/iconv.tmp $i
done
done