Do not hardcode the track numbers.

This commit is contained in:
Christoph Mallon 2012-04-29 17:12:15 +02:00 committed by Yamagi Burmeister
parent 2b16d9eee8
commit 7ee419c0fb

View file

@ -9,10 +9,10 @@ cd music
# rip all tracks beginning with second one (the first track is data) # rip all tracks beginning with second one (the first track is data)
cdparanoia -B "2-" cdparanoia -B "2-"
# could certainly be more elegant.. for I in track*.cdda.wav; do
for i in "02" "03" "04" "05" "06" "07" "08" "09" "10" "11" NUM="${I#track}"
do NUM="${NUM%.cdda.wav}"
oggenc -q 6 -o $i.ogg track$i.cdda.wav oggenc -q 6 -o "$NUM.ogg" "$I"
done done
# remove .wav files # remove .wav files