Skip to content

Instantly share code, notes, and snippets.

@Sciss
Created September 22, 2015 19:12
Show Gist options
  • Select an option

  • Save Sciss/e2eaf3dba3384d2cb23a to your computer and use it in GitHub Desktop.

Select an option

Save Sciss/e2eaf3dba3384d2cb23a to your computer and use it in GitHub Desktop.
#!/bin/sh
for file in *.java; do
mv "$file" "${file%.java}.win.txt"
iconv -f windows-1250 -t utf-8 "${file%.java}.win.txt" -o "${file%.java}.java"
rm "${file%.java}.win.txt"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment