Skip to content

Instantly share code, notes, and snippets.

@omarzina
Forked from rhardih/convert.sh
Created February 24, 2017 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omarzina/cab5a9cc2c68e0c22fea36e7881a33b5 to your computer and use it in GitHub Desktop.
Save omarzina/cab5a9cc2c68e0c22fea36e7881a33b5 to your computer and use it in GitHub Desktop.
Recursively find and convert .epub to .mobi using calibres ebook-convert (in parallel)
find . -name "*.epub" -exec sh -c 'ebook-convert "{}" "$(dirname "{}")/$(basename -s .epub "{}").mobi" &' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment