DEFID(1)
π 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 saysdefidbut the synopsis saysgid. 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 oftoken,patternornoneπ-R,--result=STYLEβ STYLE is one offilenames,grep,editornoneπ-S,--separator=STYLEβ STYLE is one ofbraces,spaceornewline, 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=spacethat's the baseline aesthetic, bestie π
-F,--frequency=FREQβ find tokens that occur FREQ times. FREQ is a range written likeN..M. IfNis omitted it defaults to1, and ifMis omitted it defaults toMAX_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
- debian bookworm: id-utils 4.6.28-20200521ss15dab+b1
- ubuntu jammy: id-utils 4.6.28-20200521ss15dab
- ubuntu noble: id-utils 4.6.28-20200521ss15dab
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms