Skip to content

Instantly share code, notes, and snippets.

@adamvr
Created September 13, 2012 09:18
Show Gist options
  • Save adamvr/3713125 to your computer and use it in GitHub Desktop.
Save adamvr/3713125 to your computer and use it in GitHub Desktop.
chapterify a directory of mp3s
#!/bin/sh
# Chapters
for chap in *
do
cd "$chap"
chapterFile="$chap".mp3
tmp=tmp.mp3
# Files
for file in *.mp3
do
cp "$file" $tmp
id3v2 -D $tmp
cat "$tmp" >> "$chapterFile"
done
cd ..
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment