cdbget(1)
π cdbget β bestie's guide to the constant database lookup π
okay so real talk, this is the cdbget(1) page, straight out of the General Commands Manual section, and it's genuinely one of the most chill little tools ever. no cap. it does one thing and it eats every single time. β¨
πΈ NAME πΈ
cdbget β search for a record in a constant database π
π SYNOPSIS π
cdbget key [ skip ]
that's it. that's the whole vibe. two little args and you're done. π
π¦ DESCRIPTION π¦
okay so here's the tea, bestie. cdbget searches for a record with key key in a constant database. and the constant database? it must be readable (and seekable, bestie, seekable matters, don't forget) on cdbget's standard input. so you're piping that db in, not passing a filename. iykyk. π«Ά
normally, cdbget prints the data in the first record with key key and exits 0. like, main character behaviour. prints, exits clean, moves on. π
but if there is no record with the keykey,cdbgetexits 100 and prints nothing. not a single crumb. silence. the void. π
and if cdbget encounters a read error, a write error, or a database format error, it complains and exits 111. dramatic? yes. deserved? also yes. it's giving "i'm not mad i'm just disappointed." π
now, the fun part. if you give it a numeric skip argument, cdbget skips past the first skip records with key key, and prints the data in the next record. so like, it's not the first one anymore, it's the one after however many you told it to yeet past. iconic. π
π SEE ALSO π
go read those too, bestie, the whole cdb squad is a package deal. π
and that's the page!! π this was the cdbget(1) entry from the General Commands Manual β no version number, no date, just vibes and a tidy little footer that says cdbget(1) and nothing else. stay seekable, stay slay. π§β¨
π¦ where this page comes from
- debian bookworm: freecdb 0.76
- debian trixie: freecdb 0.78
- ubuntu jammy: freecdb 0.76
- ubuntu noble: freecdb 0.76
- ubuntu questing: freecdb 0.78.1
- ubuntu resolute: freecdb 0.78.1build1
- ubuntu stonking: freecdb 0.78.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms