View Single Post
Old 04-08-2017, 02:38 PM   #1
tomcam
Junior Member
tomcam began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2017
Device: Kindle for iOS
Multiple input files for ebook-convert or other Calibre CLI tools?

Goal is to convert set of well-structured input files into an ePub file. In pandoc, the command line for it can be as easy as this:

Code:
# pandoc accepts wildcard designations or list of filenames 
# Convert all .md files into a single ebook file called foo.epub:
$ pandoc -o foo.epub  *.md
Is there any convention for multiple file input with any Calibre ebook creation tools? For example, these command lines don't work as I'd hope:

Code:
# Convert all .md files in current directory to HTML
$ markdown-calibre -v *.md

# Convert all .html files in directory to a single book file called foo.epub
$ ebook-convert *.html foo.epub
Thanks!

Last edited by tomcam; 04-08-2017 at 02:40 PM. Reason: Improved code comment
tomcam is offline   Reply With Quote