Created
July 1, 2015 07:24
-
-
Save ozgurodabasi/56319448df6440fe690b to your computer and use it in GitHub Desktop.
make all srt files utf in folder
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 | |
mkdir ORIGINAL_SUBS; | |
for i in *srt | |
do | |
echo "--" ${i%.srt} | |
mv "$i" ORIGINAL_SUBS; | |
iconv -f ISO8859-9 -t UTF-8 "ORIGINAL_SUBS/$i" > "${i%.srt}.srt" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment