Skip to content

Instantly share code, notes, and snippets.

@dbrack
Created September 29, 2013 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbrack/7c2b847385f826525fa8 to your computer and use it in GitHub Desktop.
Save dbrack/7c2b847385f826525fa8 to your computer and use it in GitHub Desktop.
Script to change text encoding of files
find . -type f -name "*.java" | xargs vim +"argdo set bomb | set fileencoding=utf-8 | w"
find . -type f -name "*.java" | xargs vim +"argdo set fileencoding=utf-8 | w"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment