View Single Post
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