source:
flacrip/trunk/renametag
Last change on this file was 18, checked in by peter, 10 years ago | |
---|---|
|
|
File size: 272 bytes |
Rev | Line | |
---|---|---|
[18] | 1 | #!/bin/bash |
2 | ||
3 | OLD_TAG=$1 | |
4 | NEW_TAG=$2 | |
5 | FLAC=$3 | |
6 | ||
7 | # to change the name of a FLAC tag | |
8 | # e.g., from MBZ_DISCID to MUSICBRAINZ_DISCID | |
9 | metaflac --show-tag "$OLD_TAG" "$FLAC" \ | |
10 | | sed "s/^$OLD_TAG=/$NEW_TAG=/" \ | |
11 | | metaflac --remove-tag "$OLD_TAG" --import-tags-from - "$FLAC" |
Note: See TracBrowser
for help on using the repository browser.