Created
September 13, 2012 09:18
-
-
Save adamvr/3713125 to your computer and use it in GitHub Desktop.
chapterify a directory of mp3s
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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