DEFID(1)

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

πŸ’– defid(1) β€” the manual, but make it cute πŸ’–

okay bestie, so this is defid, a lil' user command. Come sit with me, I got you 🫢


✨ NAME ✨

defid β€” [DESCRIPTION]

(yes that's literally what it says, the description is a mystery box, we love an enigmatic queen πŸ‘‘)


🌸 SYNOPSIS 🌸

gid [OPTION]... PATTERN...
lowkey important: the NAME says defid but the synopsis says gid. That's not a typo on my part, that's just what the page says. iykyk πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

So what does it do? It queries the ID database and reports the results, fr fr. πŸ“š

By default, the output is a whole bunch of lines. Each line has the matched identifier, followed by the list of file names where that identifier shows up. So it's giving "here's the thing, here's everywhere it lives" ✨


Now the options, and there are a LOT of them, so buckle up bestie, we're going through every single one πŸ’–

  • -f, --file=FILE β€” this is the file name of the ID database. Your source of truth, your main character πŸŽ€
  • -i, --ignore-case β€” match PATTERN without caring about case. Uppercase, lowercase, doesn't matter, we're not judgy πŸ’…
  • -l, --literal β€” treat PATTERN as a literal string, no funny business 🌸
  • -r, --regexp β€” treat PATTERN as a regular expression. regex girlies rise πŸ”₯
  • -w, --word β€” match PATTERN as a delimited word πŸ¦‹
  • -s, --substring β€” match PATTERN as a substring 🌈
Note: If PATTERN contains extended regular expression metacharacters, it gets interpreted as a regular expression substring. Otherwise, PATTERN is interpreted as a literal word. So the vibe of your pattern decides how it's read, periodt ✨
  • -k, --key=STYLE β€” STYLE is one of token, pattern or none πŸ‘‘
  • -R, --result=STYLE β€” STYLE is one of filenames, grep, edit or none πŸ’œ
  • -S, --separator=STYLE β€” STYLE is one of braces, space or newline, and it only applies to file names when --result=filenames πŸŽ€
The STYLE options above (-k, -R, -S) control how the query results get presented. The defaults are: text --key=token --result=filenames --separator=space that's the baseline aesthetic, bestie πŸ’–
  • -F, --frequency=FREQ β€” find tokens that occur FREQ times. FREQ is a range written like N..M. If N is omitted it defaults to 1, and if M is omitted it defaults to MAX_USHRT. Ranges, we love a flexible icon ⭐
  • -a, --ambiguous=LEN β€” find tokens whose names are ambiguous for LEN chars 😭
  • -x, --hex β€” only find numbers expressed as hexadecimal πŸ’€
  • -d, --decimal β€” only find numbers expressed as decimal πŸ’€
  • -o, --octal β€” only find numbers expressed as octal πŸ’€
By default tho? Searches match numbers of any radix. So if you don't say anything, it's all of them, no cap ✨
  • --help β€” display this help and exit. The classic 🫢
  • --version β€” output version information and exit πŸ‘‘

😀 REPORTING BUGS 😀

Found a bug? (rude of it, honestly.) Report bugs to bug-idutils@gnu.org πŸ’Œ


πŸ‘€ SEE ALSO πŸ‘€

The full documentation for defid is maintained as a Texinfo manual. If the info and defid programs are properly installed at your site, the command

info defid

should give you access to the complete manual. Go read it, it's right there bestie πŸ“–βœ¨


okay that's the whole page!! this was gid version 4.6.28-15da, dated May 2020 πŸŽ€ mwah, slay, go query that database, you absolute icon πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from