Quote:
Originally Posted by Josieb1
Thanks for the link to the other thread, my only issue is i have a few thousand I'd like to add a text file to and they all have multiple formats. Is there a quick way of adding an empty text file to a bulk set of books?
|
Yes, via the command-line.
Code:
for i in $ids; do
calibredb add_format $i /path/to/empty.txt
done
should work in bash, so that covers linux and OSX. Something similar would work on Windows, but I can never keep batch syntax straight.
You would need to replace ids with a list of all ids in calibre, when I get back to a computer I will try to make a search that produces the ids, something with calibredb list, maybe, but it might require jshon or some other bash json parser, and I have no idea on windows.