Forrest logo
back to the for tool

for:ai:91657

How do I remove all subtitles from every individual mkv file in a folder using mkvmerge in the bash command line?
$ for file in *.mkv; do mkvmerge -o "${file/.mkv/_nosubs.mkv}" --nosubs "$file"; done
try on your machine

Loop through every .mkv file in the folder, use mkvmerge to create a new file with '_nosubs' suffix removing all subtitles

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • How do I remove all subtitles from every individual mkv file in a folder using mkvmerge in the bash command line?
back to the for tool