Skip to content

Instantly share code, notes, and snippets.

@patrick91
Created June 9, 2016 10:11
Show Gist options
  • Save patrick91/755917c6d41e0453f0f6b3c8775aef25 to your computer and use it in GitHub Desktop.
Save patrick91/755917c6d41e0453f0f6b3c8775aef25 to your computer and use it in GitHub Desktop.
for f in *.srt; do
t=$(echo $f | sed 's/\.mov.srt$//' | tr '[:upper:]' '[:lower:]');
echo converting $f to $t.vtt
srt-to-vtt $f > $t.vtt
sed -i -e 's/<[^>]*>//g' $t.vtt
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment