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"