#!/bin/bashset -e# Start time/End time/FilenameSONGS=( 00:00:00 00:00:30 "dead poo poo.mp3" 00:00:30 00:01:15 "killall poo poo.mp3" )# Input fileINFILE="bigazzfile.mp3"for ((i=0;i<${#SONGS[@]};i+=3)); do START="${SONGS[i]}" END="${SONGS[i+1]}" OUTFILE="${SONGS[i+2]}" ffmpeg -i "$INFILE" -c:a copy -ss "$START" -to "$END" "$OUTFILE"done