]> Sergey Matveev's repositories - dotfiles.git/blob - bin/bin/music-renamer
gen-ula
[dotfiles.git] / bin / bin / music-renamer
1 #!/usr/bin/env zsh
2
3 ext=${1:-wav}
4
5 while read name ; do
6     (( i++ ))
7     print -v num -f %02d $i
8     print -r mv track${num}.cdda.$ext ${num}.${(qq)name}.$ext
9 done