TG Telegram Group & Channel
GeekTips | United States America (US)
Create: Update:

How is that useful. Say you did a transcription to vtt subs and wish to produce a PDF from the subs.

gsed -i -E 's/(^[0-9]{2}:[0-9]{2}\.[0-9]{3} --> )([0-9]{2}:[0-9]{2}\.[0-9]{3})/00:\100:\2/g' *.vtt

# get rid of duration for pdf chapter titles and add .md extension to rename

for f in *.vtt; do cat "$f" | sed -e '/WEBVTT/d' -e '/-->/d' | awk '!seen[$0]++' | awk 1 ORS=' ' | gsed -E -e 's/(\? )([a-z])/\1\u\2/g' > "${f%.*}".md ; done

How is that useful. Say you did a transcription to vtt subs and wish to produce a PDF from the subs.

gsed -i -E 's/(^[0-9]{2}:[0-9]{2}\.[0-9]{3} --> )([0-9]{2}:[0-9]{2}\.[0-9]{3})/00:\100:\2/g' *.vtt

# get rid of duration for pdf chapter titles and add .md extension to rename

for f in *.vtt; do cat "$f" | sed -e '/WEBVTT/d' -e '/-->/d' | awk '!seen[$0]++' | awk 1 ORS=' ' | gsed -E -e 's/(\? )([a-z])/\1\u\2/g' > "${f%.*}".md ; done


>>Click here to continue<<

GeekTips




Share with your best friend
VIEW MORE

United States America Popular Telegram Group (US)