cdbget(1)

πŸ“¦
version 0.78.2 Β· 2 versions
  • 0.78.2 Β· debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • nixpkgs unstable
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 key key, cdbget exits 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