srt2

pysrt is a Python library used to edit or create SubRip files.

Arch Arch Linux
RUN pacman -S --noconfirm python2-pysrt
Fedora
RUN dnf install -y python2-pysrt
click the source code to copy install srt2 on any operating system with command-not-found.com