Skip to content

Instantly share code, notes, and snippets.

@ptantiku
Created November 9, 2015 07:14
Show Gist options
  • Save ptantiku/0fdce0ce8914fd068041 to your computer and use it in GitHub Desktop.
Save ptantiku/0fdce0ce8914fd068041 to your computer and use it in GitHub Desktop.
Fix encoding problem on file name downloaded from e-learning server (windows)
#!/bin/bash
for f in *
do
n=$(echo $f|iconv -f LATIN1 -t UTF8 -c)
mv "$f" "$n"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment