Any thoughts?
Update:
#!/bin/bash for X in *.mp3 do total_secs=`mp3info -p "%02S" "$X"` secs_minus_eight=$(($total_secs - 8)) mins=$(($secs_minus_eight / 60)) rounded_secs=$(($mins * 60)) leftover_secs=$(($secs_minus_eight - $rounded_secs)) mp3splt "$X" 0.0 $mins.$leftover_secs -o "$X" -d ./Shortened/ done
Note: this is the third shell script I've ever written and I don't claim to know what I'm doing (it took a long time to get it working: learning what a backtick does was a major step forward...). It's probably ugly and inefficient, but it does the job (trimming eight seconds off the end of every mp3 in the folder) quickly and seemingly with no loss of quality, so I'm happy.
