EBK-FIND(1) General Commands Manual EBK-FIND(1)

ebk-findselect and open a book from a Calibre library

ebk-find -h

ebk-find -V

ebk-find [-l library] [-f formats] [-s command] [-n]

The ebk-find command launches a fuzzy finder program, presenting the titles, authors, and tags of all the books in the given library. Start typing to narrow down the list to the book to open. When a book has been selected, ebk-find will open the corresponding e-book file in the system default viewer for that file format.

By default, ebk-find opens the EPUB file for the selected book, if there is one; otherwise, it opens the PDF, if there is one; otherwise, it opens the first file it can find. The order of preferred formats can be changed with the -f flag.

ebk-find calls xdg-open(1) to open the selected book. If that command is not available on the system, use the -n flag and pass the printed path to a different command (see EXAMPLES below).

The default behaviour can be overridden with the following option flags:

, --format-preference formats
comma-separated list of file extensions in order of preference (default: ‘epub,pdf’)
, --help
Print usage information and exit.
, --library path
path to the library (default: $HOME/Calibre Library)
, --dont-open
Print path to stdout instead of opening it.
, --selection-command command
command to run to select a book (default: ‘fzf --exact’)
, --version
Print the program version and exit.

The default behaviour can be changed by setting these environment variables:

path to the default library
command to run to select a book (typically a fuzzy finder)

The ebk-find utility exits 0 on success, and >0 if an error occurs.

Selecting and opening a book from the default library:

ebk-find
Searching in a different library:
ebk-find -l ~/books/
If different formats are preferred:
ebk-find -f "txt,azw3,epub"
Using a different program for narrowing down the book selection:
ebk-find -s "sk --exact"
Using a different program to open the selected book:
ebk-find -n -f pdf | xargs -0 pdf2txt
preview "$(ebk-find -n)"

calibredb(1), fzf(1), xdg-open(1)

Code and documentation by JA Viljoen <ebookrack@javiljoen.net>.

May 20, 2025 Linux