Skip to content

Instantly share code, notes, and snippets.

@Toboe
Created June 22, 2012 12:10
Show Gist options
  • Save Toboe/2972383 to your computer and use it in GitHub Desktop.
Save Toboe/2972383 to your computer and use it in GitHub Desktop.
mp3 audiobook merge
#!/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 ../
@xErik
Copy link

xErik commented Jul 29, 2019

#!/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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment