.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2. .TH SRT-LINES-MATCHING "1" "December 2022" "srt-lines-matching 3.5.2" "User Commands" .SH NAME srt-lines-matching \- SRT subtitle processing tool .SH DESCRIPTION usage: srt lines\-matching [\-h] [\-\-input FILE] [\-\-output FILE] [\-\-inplace] .TP [\-\-no\-strict] [\-\-debug] [\-\-ignore\-parsing\-errors] [\-\-encoding ENCODING] \fB\-f\fR FUNC [\-m MODULE] [\-s] [\-v] .PP Filter subtitles that match or don't match a particular pattern. .SS "options:" .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-\-input\fR FILE, \fB\-i\fR FILE the file to process (default: stdin) .TP \fB\-\-output\fR FILE, \fB\-o\fR FILE the file to write to (default: stdout) .TP \fB\-\-inplace\fR, \fB\-p\fR modify file in place .TP \fB\-\-no\-strict\fR allow blank lines in output, your media player may explode .TP \fB\-\-debug\fR enable debug logging .TP \fB\-\-ignore\-parsing\-errors\fR, \fB\-c\fR try to keep going, even if there are parsing errors .TP \fB\-\-encoding\fR ENCODING, \fB\-e\fR ENCODING the encoding to read/write files in (default: utf8) .TP \fB\-f\fR FUNC, \fB\-\-func\fR FUNC a function to use to match lines .TP \fB\-m\fR MODULE, \fB\-\-module\fR MODULE modules to import in the function context .TP \fB\-s\fR, \fB\-\-per\-subtitle\fR match the content of each subtitle, not each line .TP \fB\-v\fR, \fB\-\-invert\fR invert matching \fB\-\-\fR only match lines returning False .SS "examples:" .IP Only include Chinese lines .IP \f(CW$ srt lines-matching -m hanzidentifier -f hanzidentifier.has_chinese\fR .IP Exclude all lines which only contain numbers .IP \f(CW$ srt lines-matching -v -f 'lambda x: x.isdigit()'\fR