Last change
on this file since 48 was
18,
checked in by peter, 10 years ago
|
added script to rename a FLAC tag
|
-
Property svn:executable set to
*
|
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.