Created
November 9, 2015 07:14
-
-
Save ptantiku/0fdce0ce8914fd068041 to your computer and use it in GitHub Desktop.
Fix encoding problem on file name downloaded from e-learning server (windows)
This file contains hidden or 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 | |
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