Convert ebook format

Convert ebook format #

Convert from one ebook format to another.

First, install Calibre brew install --cask calibre

To convert one file at a time:

ebook-convert "<file>.epub" "<file>.mobi"

To convert multiple commonly-typed source files to a common output type:

for book in *.epub; ebook-convert "$book" "$(basename "$book" .epub).mobi"; done