You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
378 B
Bash
15 lines
378 B
Bash
#!/bin/bash
|
|
tail -n +2 Markers.csv | tac | awk '{print $3}' | sed -e "s/:/ /g" >> cue.tmp
|
|
t=1
|
|
cat cue.tmp | while read line;
|
|
do
|
|
p=($(echo $line))
|
|
if [ ${p[0]} -gt 0 ]; then
|
|
p[1]=$(echo "(${p[0]} * 60) + ${p[1]}" | bc)
|
|
fi
|
|
cue=($(echo "${p[1]}:${p[2]}:${p[3]}"))
|
|
printf "\nTRACK %02d AUDIO\n" $t >> output.cue
|
|
printf "INDEX 01 %s\n" $cue >> output.cue
|
|
t=$((t + 1))
|
|
done
|
|
rm cue.tmp |