Created
June 22, 2012 12:10
-
-
Save Toboe/2972383 to your computer and use it in GitHub Desktop.
mp3 audiobook merge
This file contains 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/bash | |
#Requires http://mp3wrap.sourceforge.net/ | |
#Deletes .pdf & move .jpg cover from AudioBook folder | |
find . -name '*.mp3'|sort|xargs mp3wrap ../$(echo $PWD | cut -c102- | sed 's/\ //g').mp3 && ls && mv *.pdf ../ ; mv cover.jpg ../$(echo $PWD | cut -c102- | sed 's/\ //g').jpg ; ls -G ; cd ../ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#!/bin/bash
Requires http://mp3wrap.sourceforge.net/
Correct sorting for me, NOT: 1, 10, 11, 2 ,...
Names the MP3 to current directory name
find . -name '*.mp3'|sort -V|xargs mp3wrap $(basename $PWD | sed 's/\ //g').mp3