Elektra  0.9.5
kdb-meta-get(1) -- Get the value of a metakey stored in the key database

kdb meta-get <key name> <metaname>

Where key name is the name of the key and metaname is the name of the metakey the user would like to access.

This command is used to print the value of a metakey. A metakey is information stored in a key which describes that key.

The handling of cascading key name does not differ to kdb get. Make sure to use the namespace spec, if you want metadata from there.

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

To get the value of a metakey called description stored in the key spec:/example/key:
kdb meta-get spec:/example/key description

To get the value of metakey called override/#0 stored in the key spec:/example/dir/key:
kdb meta-get spec:/example/dir/key "override/#0"