The input text must match the specified format exactly, otherwise the program returns an error status.
The options are as follows:
key: value
key2: value2
Keys may contain any non-whitespace character, and values may contain any character except a new-line, which indicates a new record.
Whitespace may appear anywhere directly before or after the colon, for example:
key : value
key2 : value2
You will notice that the format is very similar, but not identical to, the one used in ~/.Xresources
drecord -m password < file
Will print any lines in file where the left-hand value (the key) matches ``password'' exactly.
The command:
diary -di file | drecord email
will use diary(1) to decrypt file and then search through it with this program, returning any lines where the key contains (but does not exactly match) the word ``email''