*.cue로 *.wav 분할하기 (flac 가능, 결과는 wav로..)
shnsplit -f *.cue *.wav -t “%n %t”
분할된 wav를 다시 flac 압축
flac *.wav
CUE를 기반으로 Tag 생성 (cuetools 필요)
cuetag.sh *.cue *.flac
TAG를 기반으로 Filename 변경
for a in *.flac; do
ARTIST=`metaflac “$a” –show-tag=ARTIST | sed s/.*=//g`
TITLE=`metaflac “$a” –show-tag=TITLE | sed s/.*=//g`
TRACKNUMBER=`metaflac “$a” –show-tag=TRACKNUMBER | sed s/.*=//g`
mv “$a” “`printf %02g $TRACKNUMBER` – $ARTIST – $TITLE.flac”
done
ref.
https://wiki.archlinux.org/index.php/CUE_Splitting
http://lglinux.blogspot.com/2008/10/use-flac-tags-to-rename-files.html