Next: , Previous: , Up: Commands   [Contents][Index]

2.3 zdbf

zdbf is used to fetch records from a database file. Queries are read from stdin or, optionally, from a text file. Records with key values that match the queries will be printed to stdout. By default, only the corresponding values will be printed. However, if a delimiter character is provided, both keys and values will be printed. Finally, an option is available to simply print all records in the database.

In addition to the database file to be used and the common options, the zdbf command accepts the following options:

-a, --all

Fetch all the records in the database.

-d, --delim=CHAR

Delimiter character to separate printed keys from values (default none; only values will be printed).

-i, --input=FILE

Read queries from a file instead of from stdin.