#!/bin/bash
convert_file()
{
for file in `find .`
do
if [[ -f $file ]]
then
if [[ ${file##*.} == lua || ${file##*.} == ini ]]; then
iconv -f GB2312 -t UTF-8 $file >> $file
echo $file
fi
fi
done
}
convert_file
原文地址:https://www.cnblogs.com/praglody/p/9249741.html
时间: 2024-10-04 12:45:59