#!/bin/bash

convert_file()
{
    for file in `find .`
    do
        if [[ -f $file ]]
        then
            if [[ ${file##*.} == lua || ${file##*.} == ini ]]; then
                cp $file $file".bak"
                iconv -f GB2312 -t UTF-8 $file > $file
                echo $file
            fi
        fi
    done
}

convert_file

相关文章:

  • 2021-09-08
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2022-03-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-12
  • 2021-11-30
  • 2022-12-23
  • 2021-11-30
相关资源
相似解决方案