]> git.rmz.io Git - dotfiles.git/commitdiff
add mkvsettitle
authorSamir Benmendil <samir.benmendil@gmail.com>
Thu, 15 Nov 2012 13:05:47 +0000 (14:05 +0100)
committerSamir Benmendil <samir.benmendil@gmail.com>
Thu, 15 Nov 2012 13:05:47 +0000 (14:05 +0100)
bin/mkvsettitle [new file with mode: 0755]

diff --git a/bin/mkvsettitle b/bin/mkvsettitle
new file mode 100755 (executable)
index 0000000..8afbee6
--- /dev/null
@@ -0,0 +1,7 @@
+#! /bin/bash
+# sets the title of all mkv videos to the filename without extension
+
+for f in *.mkv; do
+    t=${f%.mkv}
+    mkvpropedit --set title="$t" "$f"
+done