From: Sergey Matveev Date: Sat, 28 Mar 2020 12:26:43 +0000 (+0300) Subject: Many CUE files are in latin1, instead of Unicode X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=82fcf73187534cc4e179bf81669fb6cc8d51d95c Many CUE files are in latin1, instead of Unicode --- diff --git a/bin/bin/cueparser.sh b/bin/bin/cueparser.sh index 546b47d..36b2674 100755 --- a/bin/bin/cueparser.sh +++ b/bin/bin/cueparser.sh @@ -1,7 +1,8 @@ #!/bin/sh c=1 -sed -n 's/^ *TITLE .\(.*\)".*$/\1/p' < $1 | while read trackname; do +iconv -f latin1 -t utf-8 "$1" | +sed -n 's/^ *TITLE .\(.*\)".*$/\1/p' | while read trackname; do v=`printf "%02d\n" $c` echo mv split-track$v.flac $v.\"$trackname\".flac c=$(( $c + 1 ))