Created
January 19, 2016 13:55
-
-
Save devversion/4c69407647d00454989b to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
find . -type f -print | while read f; do | |
mv -i "$f" "$f.recode.$$" | |
iconv -f iso-8859-1 -t utf-8 < "$f.recode.$$" > "$f" | |
rm -f "$f.recode.$$" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment