Skip to content

Instantly share code, notes, and snippets.

@devversion
Created January 19, 2016 13:55
Show Gist options
  • Save devversion/4c69407647d00454989b to your computer and use it in GitHub Desktop.
Save devversion/4c69407647d00454989b to your computer and use it in GitHub Desktop.
#!/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