Skip to content

Instantly share code, notes, and snippets.

@MC-Squared
Created December 19, 2016 08:31
Show Gist options
  • Save MC-Squared/8744a593fb1d2077c276f2730c45fe88 to your computer and use it in GitHub Desktop.
Save MC-Squared/8744a593fb1d2077c276f2730c45fe88 to your computer and use it in GitHub Desktop.
TIMING="5.0"
echo "Splitting: $1"
echo "Default timing is $TIMING"
filename=$1
extension="${filename##*.}"
filename="${filename%.*}"
echo "Name: $filename"
echo "Ext: $extension"
mp3splt -a -t $TIMING -o $filename-@n -d $filename $1
#To run over a folder try: "for f in *.mp3 ; do splitmp3.sh $f ; done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment