Skip to content

Instantly share code, notes, and snippets.

@djromero
Created May 31, 2014 21:39
Show Gist options
  • Save djromero/fbb752a75039cc6c561c to your computer and use it in GitHub Desktop.
Save djromero/fbb752a75039cc6c561c to your computer and use it in GitHub Desktop.
Latin1 subtitles to UTF-8 oneliner
find * -name "*srt" | while read file;do file -I "$file" | grep 8859;if [ $? -eq 0 ];then iconv -f latin1 -t utf8 "$file" > "_${file}"; mv "_${file}" "$file";fi;done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment