Skip to content

Instantly share code, notes, and snippets.

@Diegus83
Created November 5, 2020 16:22
Show Gist options
  • Save Diegus83/7d7653ae2b899e977fa008bd445241c2 to your computer and use it in GitHub Desktop.
Save Diegus83/7d7653ae2b899e977fa008bd445241c2 to your computer and use it in GitHub Desktop.
Set mkv Title tag using the file name, removing the extension
# Usage: set_mkv_tile.sh *.mkv
for f in "$@"
do
if [ ${f: -4} == ".mkv" ]
then
echo "$f"
echo "${f%.*}"
/usr/local/bin/mkvpropedit "$f" --edit info --set title="${f%.*}"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment