Closed tunjan closed 3 years ago
Add an option (i.e: impd add -l) to remove the openings and endings from subtitles.
rg -n -B2 "pattern" file | cut -f1 -d: | sed 's/-.*//' | sed '/^$/d'
This script would output the line of the music pattern + two lines before (in case the mime type is srt).
sed -i '${line}d' output.srt
This one would delete the lines outputed by the previous command.
Is it fixed now?
Yes, works flawlessly. Thank you.
Add an option (i.e: impd add -l) to remove the openings and endings from subtitles.
rg -n -B2 "pattern" file | cut -f1 -d: | sed 's/-.*//' | sed '/^$/d'
This script would output the line of the music pattern + two lines before (in case the mime type is srt).
sed -i '${line}d' output.srt
This one would delete the lines outputed by the previous command.