Sunday, May 27, 2012

sed subtitle fix

From (broken.srt)
00:00:14:267 --> 00:00:20:258

to (fixed.srt)
00:00:14,267 --> 00:00:20,258

cat broken.srt | sed -e 's/\([0-9]*\):\([0-9]*\):\([0-9]*\):\([0-9]*\)/\1:\2:\3,\4/g' > fixed.srt

No comments: