|
NAMEbsearch —
manages one-time passwords
SYNOPSIS
DESCRIPTIONThebsearch program performs binary searches of
file which must be a sorted flat text file.
Each line is a record. Each record starts with a key that is optionally followed by whitespace and a value. Whitespace may be quoted with a backslash, but newline and carriage-return characters must be quoted in some other manner (e.g., as backslash-n and backslash-r). Escapes are not interpreted nor removed. If no key arguments are given on the comman-line, then keys will be read from standard input. By default only values are printed to standard output. Use the -K option to also print keys. The exit status will be non-zero if any key lookups fail. Options are:
EXAMPLES$ env LC_ALL=C sort -o /tmp/words /usr/share/dict/words $ bsearch -Kv /tmp/words day Using whole-file method Key day found at offset 327695 in 12 loops and 0 reads day $ NOTESRecords must not be longer than one block's size.Flat text files must be sorted in the "C" locale. In some systems the default locale may result in case-insensitive sorting by the sort command. SEE ALSOsort(1)
Visit the GSP FreeBSD Man Page Interface. |