在Windows上创建的.txt文件在Mac上是乱码,批量转换文件命令如下:
mkdir output find *.txt -exec sh -c "iconv -f GB2312 -t UTF-8 {} > output/{}" \;