find ./* > .filelist
while read LINE
do
fileType=''
fileType=`file ${LINE}|grep "UTF-8"`
if [[ ${fileType} != '' ]];then
echo ${LINE}
recode utf8...gb2312 ${LINE}
file ${LINE}
fi
done < .filelist
rm .filelist
多文件utf8转gb2312
最新推荐文章于 2022-03-12 18:57:04 发布