]> Sergey Matveev's repositories - dotfiles.git/blob - bin/bin/cueparser.sh
More go-related cleanups
[dotfiles.git] / bin / bin / cueparser.sh
1 #!/bin/sh
2
3 c=1
4 iconv -f latin1 -t utf-8 "$1" |
5 sed -n 's/^  *TITLE .\(.*\)".*$/\1/p' | while read trackname; do
6         v=`printf "%02d\n" $c`
7         echo mv split-track$v.wav $v.\"$trackname\".wav
8         c=$(( $c + 1 ))
9 done