Skip to content

Instantly share code, notes, and snippets.

@wliment
Created November 10, 2013 13:33
Show Gist options
  • Save wliment/7398333 to your computer and use it in GitHub Desktop.
Save wliment/7398333 to your computer and use it in GitHub Desktop.
查找utf-8的文件然后转换成GBK
find . -type f -name '*.java' -exec bash -c "enca -L zh_CN {}|grep UTF-8 > /dev/null && enconv -L zh_CN -x GB2312 {}" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment