]> git.rmz.io Git - dotfiles.git/blob - bin/mkvsettitle
71619c3860b5c09c086caba539413c2ed838f7be
[dotfiles.git] / bin / mkvsettitle
1 #! /bin/bash
2 # sets the title of all mkv videos to the filename without extension
3
4 dir=${1-.}
5 for f in "$dir"/*.mkv; do
6 t=$(basename "$f" .mkv)
7 mkvpropedit --set title="$t" "$f" > /dev/null
8 done