View Single Post
Old 07-21-2017, 02:18 AM   #3
icallaci
Guru
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
Posts: 819
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
Quote:
Originally Posted by kovidgoyal View Post
Use

calibre-debug --expode-book file.epub

which will unpack file.epub into a temp dir and then wait for you to type y after making your changes and then recreate the epub from the temp dir.

You can automate it by using something like expect to pass in the y automatically after running the replace tool.
Yes! Thank you! I was so focused on finding a grep-like tool to parse through the files that I couldn't see any other possible solutions. I'll give that a try tomorrow after a good night's sleep. Thanks again.
icallaci is offline   Reply With Quote