View Single Post
Old 11-20-2012, 05:06 AM   #13
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It really isn't my job to teach you how to use the CLI, but, since I needed a five minute break anyway...

Code:
id = `calibredb add test.html --duplicates | grep "Added book ids" | tail -n1 | cut -d":" -f2`
calibredb add_format $id someotherformat.epub

ebook-meta file.mobi | grep '^Title' | head -n1 | cut -d":" -f 2
kovidgoyal is offline   Reply With Quote