Skip to content

Instantly share code, notes, and snippets.

@ozgurodabasi
Created July 1, 2015 07:24
Show Gist options
  • Save ozgurodabasi/56319448df6440fe690b to your computer and use it in GitHub Desktop.
Save ozgurodabasi/56319448df6440fe690b to your computer and use it in GitHub Desktop.
make all srt files utf in folder
#!/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