MKID(1)

πŸ“¦
version 4.6.28 Β· 4 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– MKID β€” the manual page, bestie edition πŸ’–

okay so you found mkid and you're like "what is this" β€” don't worry, I got you. it's the mkid command from the User Commands corner of the manual, and it's literally the thing that builds your identifier database. iconic behavior. let's go. πŸ¦‹


✨ NAME ✨

mkid β€” Build an identifier database. that's it, that's the whole job, and she does it flawlessly. πŸ’…


🌸 SYNOPSIS 🌸

mkid [OPTION]... [FILE]...

πŸŽ€ DESCRIPTION πŸŽ€

Build an identifier database. no cap, that's the vibe: you point it at files, it hands you back a database of identifiers.

here's the whole option menu, and I mean the whole menu β€” every single one:

  • -o, --output=OUTFILE β€” the file name of your ID database output. this is where the magic gets written. ✨
  • -f, --file=OUTFILE β€” literally just a synonym for --output. same energy, different name.
  • -i, --include=LANGS β€” include the languages in LANGS (default: "C C++ asm").
  • -x, --exclude=LANGS β€” exclude the languages in LANGS.
  • -l, --lang-option=L:OPT β€” pass OPT as a default for language L (see below πŸ‘‡).
  • -m, --lang-map=MAPFILE β€” use MAPFILE to map file names onto source language.
  • -d, --default-lang=LANG β€” make LANG the default source language.
  • -p, --prune=NAMES β€” exclude the named files and/or directories. bye bestie, not you. πŸ™ˆ
  • -v, --verbose β€” report per file statistics.
  • -s, --statistics β€” report statistics at end of run.
  • --files0-from=F β€” tokenize only the files specified by NUL-terminated names in file F.
  • --help β€” display this help and exit. 🫢
  • --version β€” output version information and exit.

FILE may be a file name, or a directory name to recursively search. and if you give it no FILE at all? it just searches the current directory by default. easy.

⚠️ heads up bestie: the --include and --exclude options are mutually-exclusive. pick a lane. 😭

The following arguments apply to the language-specific scanners:

🧚 C language:

  • -k,--keep=CHARS β€” Allow CHARS in single-token strings, keep the result.
  • -i,--ignore=CHARS β€” Allow CHARS in single-token strings, toss the result.
  • -u,--strip-underscore β€” Strip a leading underscore from single-token strings.

πŸ’œ C++ language:

  • -k,--keep=CHARS β€” Allow CHARS in single-token strings, keep the result.
  • -i,--ignore=CHARS β€” Allow CHARS in single-token strings, toss the result.
  • -u,--strip-underscore β€” Strip a leading underscore from single-token strings.

πŸ“ Java language:

  • -k,--keep=CHARS β€” Allow CHARS in single-token strings, keep the result.
  • -i,--ignore=CHARS β€” Allow CHARS in single-token strings, toss the result.
  • -u,--strip-underscore β€” Strip a leading underscore from single-token strings.

πŸ”₯ Assembly language:

  • -c,--comment=CHARS β€” Any of CHARS starts a comment until end-of-line.
  • -k,--keep=CHARS β€” Allow CHARS in tokens, and keep the result.
  • -i,--ignore=CHARS β€” Allow CHARS in tokens, and toss the result.
  • -u,--strip-underscore β€” Strip a leading underscore from tokens.
  • -n,--no-cpp β€” Don't handle C pre-processor directives.

🌈 Text language:

  • -i,--include=CHAR-CLASS β€” Treat characters of CHAR-CLASS as token constituents.
  • -x,--exclude=CHAR-CLASS β€” Treat characters of CHAR-CLASS as token delimiters.

⭐ Perl language:

  • -i,--include=CHAR-CLASS β€” Treat characters of CHAR-CLASS as token constituents.
  • -x,--exclude=CHAR-CLASS β€” Treat characters of CHAR-CLASS as token delimiters.
  • -d,--dtags β€” Include documentation tags.

πŸ’€ Lisp language:

...that's it. that's the whole list. Lisp gets a heading and absolutely nothing under it and honestly? main character energy. πŸ‘‘


😭 REPORTING BUGS 😭

Report bugs to bug-idutils@gnu.org. tell them everything, they want to know. 🫢


πŸ‘€ SEE ALSO πŸ‘€

The full documentation for the id-utils package is maintained as a Texinfo manual. If the info and id-utils packages are properly installed, the command

info 'ID database'

should give you access to the complete manual. iykyk. ✨


and that's the whole page, bestie! this one's from mkid, version 4.6.28-15da, dated May 2020. go build that database, you're gonna slay. πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from