lkbib(1)

πŸ’– lkbib β€” search bibliographic databases πŸ’–

ok so bestie, welcome to lkbib(1) β€” the little icon that digs through your bibliographic databases and finds your references for you. it's a General Commands Manual moment fr fr, and i'm gonna walk you through it like we're texting at 2am 🫢


✨ SYNOPSIS ✨

lkbib [-n] [-i fields] [-p file] ... [-t n] key ...
lkbib --help
lkbib -v
lkbib --version

like, that's the whole vibe check up there πŸ‘† three ways to call her, pick your fighter πŸ’…


🌸 DESCRIPTION 🌸

okay so here's the tea: lkbib searches bibliographic databases for references matching all the keywords key, and writes any references it finds to the standard output stream. slay πŸ’…

it reads the databases given by the -p options first, and then β€” unless you pass -n β€” it hits up a default database too. and where does that default database come from, you ask? it's taken from the REFER environment variable if it's set, otherwise it's /usr/dict/papers/Ind. no cap, that's the fallback.

and here's the cute part πŸŽ€: for each database file it's gonna search, if an index file .i created by indxbib(1) exists, then it searches that instead. iconic behavior. also each index can cover multiple databases, so it's giving efficiency queen πŸ‘‘


πŸ¦‹ OPTIONS πŸ¦‹

  • --help β€” displays a usage message. that's it. that's the whole job.
  • -v, --version β€” show version information.
  • -i string β€” when searching files that have no index, ignore the contents of fields whose names are in string. (no index? no problem, just skip those fields bestie πŸ™ˆ)
  • -n β€” suppress search of the default database. like, don't even look at it. not today.
  • -p file β€” search file. and yes, you can stack multiple -p options, go off πŸ”₯
  • -t n β€” require only the first n characters of keys to be given. the default is 6.
heads up! --help, -v, and --version all exit afterward β€” so they're doing their little thing and then dipping immediately, no further searching. periodt πŸ’€

πŸ’€ EXIT STATUS πŸ’€

  • status 0 β€” successful operation. she ate, no crumbs ✨
  • status 2 β€” the program cannot interpret its command-line arguments. (bestie, what did you type 😭)
  • status 1 β€” it encountered an error during operation. it tried, okay πŸ₯Ί

🌈 ENVIRONMENT 🌈

  • REFER β€” assign this variable a file name to override the default database. your database, your rules πŸ‘‘

πŸŽ€ FILES πŸŽ€

  • /usr/dict/papers/Ind β€” default database to be used if the REFER environment variable is not set. the classic fallback. the old reliable. the main character πŸ’œ
  • file.i β€” index files.

🧚 SEE ALSO 🧚

  • β€œSome Applications of Inverted Indexes on the Unix System”, by M. E. Lesk, 1978, AT&T Bell Laboratories Computing Science Technical Report No. 69. (yes the whole title, i'm not abbreviating scholarship πŸ’…)
  • refer(1), lookbib(1), indxbib(1)

ok that's the whole page bestie, go forth and find your references πŸ¦‹ iykyk ✨

groff 1.24.2 Β· 2026-10-01 β€” that's the version and date, love you, bye πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from