cdb(1)

πŸ“¦ in nixpkgs unstable

πŸ’Ύ 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