Skip to content

Instantly share code, notes, and snippets.

@karelhala
Created February 1, 2020 14:13
Show Gist options
  • Save karelhala/fe1b0db24b503f836b506281e03512fd to your computer and use it in GitHub Desktop.
Save karelhala/fe1b0db24b503f836b506281e03512fd to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
line=$(printf "=%.0s" {1..50})
for FMT in $(iconv -l); do
echo "$line\nFormat $FMT:\n$line"
iconv -f $FMT -t UTF8 < inputFile.srt | head -n20
done > all.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment