Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 02-17-2015, 10:12 AM   #1
loviedovie
Addict
loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.
 
Posts: 295
Karma: 2139988
Join Date: Nov 2014
Device: bookeen
Shell script to search all your libraries

Hi

I made a small shell script to search all my libraries at one go (which is not possible in the gui as far as I know)

I hope it is useful to you as well.

Code:
#!/bin/bash
DATABASE=()
DATABASE=("path_to_database_1" "path_to_database_2" "path_to_database_3")
echo ${DATABASE[*]}

for a in ${DATABASE[*]}; do

    echo $a
    calibredb list --library-path=$a -s $*


done;
Then in the shell just type the name of the script and yur search query. It will list all the found books according to their respective lib.

I do not know how to make this into a plugin. it would be nice if it could be invoked inside the gui.

Last edited by loviedovie; 02-17-2015 at 10:24 AM.
loviedovie is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell Script Kindle 4nt nixlos Kindle Developer's Corner 3 08-12-2014 12:46 PM
shell script to randomize files in directory Eradicatore Kindle Developer's Corner 25 04-15-2014 10:18 PM
invoking sql in a shell script Mingyar Kobo Developer's Corner 17 05-31-2013 06:50 PM
pdf to txt shell script Mr.Castro0o PDF 0 03-27-2013 07:39 AM
Shell script to wait for user input from K3g keyboard jmseight Kindle Developer's Corner 33 04-01-2012 04:32 PM


All times are GMT -4. The time now is 09:45 AM.


MobileRead.com is a privately owned, operated and funded community.