View Single Post
Old 11-26-2014, 04:56 PM   #11
Josieb1
Grand Sorcerer
Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.
 
Posts: 5,089
Karma: 18051062
Join Date: Nov 2009
Location: UK
Device: Kindle Scribe, Coloursoft, PW SE, Kindle 6, Kobo Libra 2, Clara BW
Quote:
Originally Posted by eschwartz View Post
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 would require jshon or some other bash json parser, and I have no idea on windows.
Thanks again for your help, but you might as well be talking a foreign langauage as I haven't got a clue what you're talking about

Last edited by Josieb1; 11-26-2014 at 05:21 PM.
Josieb1 is offline   Reply With Quote