Next: Data Definitions, Previous: Gdbmtool Commands, Up: gdbmtool interactive mode [Contents][Index]
A gdbmtool
command can be followed by a pipe sign (‘|’)
and a shell command. This construct (a pipeline) works the same
way as in Bourne shell: the output of gdbmtool
command to
the left of ‘|’ is connected to the input of the shell command to
the right of it. This latter command will be run using $SHELL -c
.
For example, to print the directory of the GDBM file sorted by bucket address, one would do:
dir | sed 1,4d | sort -k3n
(the table begins at line 5, so first four lines are removed, and the bucket address is listed in column 3).