]> Sergey Matveev's repositories - dotfiles.git/blob - bin/bin/cueparser.sh
Huge tmux-fzf simplification with files quoting
[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