diff options
Diffstat (limited to 'contrib/global/btreeop/btreeop.1')
-rw-r--r-- | contrib/global/btreeop/btreeop.1 | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/contrib/global/btreeop/btreeop.1 b/contrib/global/btreeop/btreeop.1 index 45b6e9f4225f2..0b2111fe1ef33 100644 --- a/contrib/global/btreeop/btreeop.1 +++ b/contrib/global/btreeop/btreeop.1 @@ -28,7 +28,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd Nov 3, 1998 +.Dd Nov 26, 1997 .Dt BTREEOP 1 .Os BSD 4 .Sh NAME @@ -40,7 +40,7 @@ .Op Fl C .Op Fl D[keyno] Ar key .Op Fl K[keyno] Ar key -.Op Fl L[2] +.Op Fl L .Op Fl k Ar prefix .Op Ar dbname .Sh DESCRIPTION @@ -66,11 +66,21 @@ create database and write records to it. delete records by the key. By default, keyno is 0 (primary key). .It Fl K[keyno] Ar key search records by the key. By default, keyno is 0 (primary key). -.It Fl L[2] -list all primary keys. If '2' is specified, list all the key and data pairs. +.It Fl L +list all primary keys. +Following two command lines are identical except that the latter is much faster. + + btreeop | awk '{print $1}' | uniq + + btreeop -L .It Fl k Ar prefix scan records which have the prefix as a primary key. This option is valid only with sequential read operation (-L command or non command). +Following two command lines are identical except that the latter is much faster. + + btreeop | awk '$1 ~ /^fo/ {print }' + + btreeop -k fo .It Ar dbname database name. default is 'btree'. .Sh DATA FORMAT |