notes/scripts/srt2vtt.sh
2023-01-05 21:11:06 -08:00

8 lines
No EOL
149 B
Bash
Executable file

#!/bin/bash
OUT=${1%.srt}.vtt
echo "WEBVTT" >> $OUT
echo "" >> $OUT
sed 's#\([0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\}\),\([0-9]\{3\}\)#\1.\2#g' $1 >> $OUT