Forrest logo
back to the for tool

for:ai:ea6f7

how do I process all mkv files in a folder using mkvmerge in the command line?
$ for file in *.mkv; do mkvmerge -o processed_$file $file; done
try on your machine

This command loops through all mkv files in the current folder, processes each file using mkvmerge, and saves the output with the prefix 'processed_'

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 process all mkv files in a folder using mkvmerge in the command line?
back to the for tool