Extract the subtitle from track 3 of a specific file

mkvmerge

mkvextract tracks {{path/to/file.mkv}} {{3}}:{{path/to/subs.srt}}

click the source code to copy install mkvmerge on any operating system with command-not-found.com