You are viewing a single comment's thread from:

RE: Better learning through spoken words while reading subtitles

in #whaleshares7 years ago (edited)

So actually I used this one: sed 's/\. /\.\'$'\n/g' To add newlines after a period and a space.

But first I had to delete the timestamps from the subtitle file: sed '/[0-3]:/d' and empty lines: sed '/^$/d'

Another guide: The Basics of Using the Sed Stream Editor to Manipulate Text in Linux The basics, LOL.