Created
December 24, 2014 03:41
-
-
Save imerr/810a5af7030e24db3036 to your computer and use it in GitHub Desktop.
Mass convert files to utf8 via function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
utf8() { for var; do (mv "$var" "$var.old" && iconv -f windows-1252 -t utf-8 "$var.old" > "$var" && rm -f "$var.old" && echo $var); done } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment