I need to write a sed script that places the actual text of the subtitles in a srt file on a single line.
If this text originally was split over multiple lines, the line break and possible whitespace must be replaced by a single whitespace.
Input
00:00:12,800 --> 00:00:16,300
I think uh, vice-president of consumer products
or something like that
Output
00:00:12,800 --> 00:00:16,300
I think uh, vice-president of consumer products or something like that
I already got this
N
s/\([a-z]*,*\)\\n/ /g
but that didn't work. Can someone help me?
sed
a must? apart from that: so you want to get all the text between 2 timestamps (i see the-->
as the prominent pattern here) onto one long line? reading en.wikipedia.org/wiki/SubRip i am under the impression that an empty line separates 2 subtitles ... ?