Skip to content

Instantly share code, notes, and snippets.

@lmullen
Created March 12, 2014 20:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lmullen/9515922 to your computer and use it in GitHub Desktop.
Save lmullen/9515922 to your computer and use it in GitHub Desktop.
Convert text files in cp1252 with dos line endings to files in UTF-8 with Unix line endings
# Convert text files in cp1252 with dos line endings to files in UTF-8 with
# Unix line endings
for file (*.txt) {iconv -f cp1252 -t utf-8 $file -o $file}
dos2unix *.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment