Skip to content

Instantly share code, notes, and snippets.

@meehow
Created March 3, 2013 16:33
Show Gist options
  • Save meehow/5076794 to your computer and use it in GitHub Desktop.
Save meehow/5076794 to your computer and use it in GitHub Desktop.
#!/bin/bash -e
files=$(find . -name "*.php" -o -name "*.html" -o -name "*.htm" -o -name "*.tpl" -o -name "*.js" -o -name "*.txt" -o -name "*.css")
for f in $files; do
iconv -f latin2 -t utf8 "$f" > "$f.utf8"
mv "$f.utf8" "$f"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment