cdb(1)
πΎ cdb(1) β manual page energy πΎ
Bestie, welcome to the cdb manual page. The star of this page is cdbget, and weβre gonna get you all the way together. No cap.
πΈ NAME πΈ
cdbget β search for a record in a constant database π
β¨ SYNOPSIS β¨
cdbget K
cdbget K S
π¦ DESCRIPTION π¦
Okay so cdbget searches for a record with key K in a constant database. The constant database has to be readable (and seekable) on cdbgetβs standard input. That part is literally the vibe check for the database.
When it finds what itβs looking for, cdbget prints the data in the first record with key K and exits 0. Slay.
If there is no record with key K, cdbget exits 100 without printing anything. Not a single character, bestie. π
If cdbget encounters a read error, write error, or database format error, it complains and exits 111. So if you see 111, itβs giving βsomething went wrong and Iβm telling you about it.β π
If a numeric argument S is provided, cdbget skips past the first S records with key K, and prints the data in the next record. For example, cdbget foo 3 prints the fourth record with key foo (skipping 3 records). Periodt.
There is also a cdb64get that uses cdb64 format instead of cdb format. Twin energy! π
π SEE ALSO π
Cute footer sign-off: this pageβs footer just says cdb(1) β no source/version or date info is listed, so thatβs the whole wrap. ππ
π¦ where this page comes from
- nixpkgs unstable: cdb 20251021
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms