Elektra
0.9.4
|
kdb find <regex>
Where regex
is a regular expression which contains the key to find.
This command will list the name of all keys that contain regex
.
-H
, --help
: Show the man page.-V
, --version
: Print version info.-p
, --profile <profile>
: Use a different kdb profile.-C
, --color <when>
: Print never/auto(default)/always colored output.-v
, --verbose
: Explain what is happening. Prints additional information in case of errors/warnings.-d
, --debug
: Give debug information. Prints additional debug information in case of errors/warnings.-0
, --null
: Use binary 0 termination.```
sudo kdb mount find.ecf user:/tests/find dump
kdb set user:/tests/find/tests val1 kdb set user:/tests/find/tests/foo/bar val2 kdb set user:/tests/find/tests/fizz/buzz fizzbuzz kdb set user:/tests/find/tostfizz val3 kdb set user:/tests/find/tust/level lvl
kdb find '/tests/find/t[eo]' #> user:/tests/find/tests #> user:/tests/find/tests/fizz/buzz #> user:/tests/find/tests/foo/bar #> user:/tests/find/tostfizz
kdb find 'fizz' #> user:/tests/find/tests/fizz/buzz #> user:/tests/find/tostfizz
kdb rm -r /tests/find sudo kdb umount user:/tests/find ```
path
then you should consider the kdb-export(1) command.