source: flacrip/trunk/renametag @ 47

Last change on this file since 47 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
RevLine 
[18]1#!/bin/bash
2
3OLD_TAG=$1
4NEW_TAG=$2
5FLAC=$3
6
7# to change the name of a FLAC tag
8# e.g., from MBZ_DISCID to MUSICBRAINZ_DISCID
9metaflac --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.