$darkmode
Elektra 0.11.0
kdb-namespace(1) -- Get the namespace of a key name

SYNOPSIS

kdb namespace <key name>

Where key name is the name of the key.

DESCRIPTION

This command is used to retrieve the namespace of a key, including the eventual trailing ':'. For the cascading namespace, the empty string is returned.

RETURN VALUES

This command will return the following values as an exit status:

OPTIONS

EXAMPLES

1 kdb namespace user:/key/subkey
2 #> user:
3 
4 kdb namespace /key/subkey
5 #>

SEE ALSO