From ffd5b407e9023614f5a97433c706e9b0ba4b14ad Mon Sep 17 00:00:00 2001 From: Lorenzo Pistone Date: Thu, 14 Feb 2019 16:07:21 +0100 Subject: [PATCH] tag_ogg helper script --- tag_ogg | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 tag_ogg diff --git a/tag_ogg b/tag_ogg new file mode 100755 index 0000000..ca1bd47 --- /dev/null +++ b/tag_ogg @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +fname=$(echo "${2} - ${1}.ogg" | tr '/' - | tr '\0' ' ') +cat > "$fname" +{ + echo "TITLE=${1}" | tr '\n' ' ' + shift + for artist in "$@"; do + echo "ARTIST=${artist}" | tr '\n' ' ' + done +} | vorbiscomment -a "$fname"