GID(1)
π GID π
okay so bestie, welcome to gid β that's the gid command from the User Commands corner of your manual, and she is so much more useful than she looks. let's get into it π«Ά
β¨ NAME β¨
gid β Query ID database and report results.
like. that's the whole job. she queries the ID database and reports what she finds. main character energy, honestly π
πΈ SYNOPSIS πΈ
gid [OPTION]... PATTERN...
so it's gid, then however many options you want, then however many PATTERNs you want. go off π
π¦ DESCRIPTION π¦
Query ID database and report results. By default, output consists of multiple lines, each line containing the matched identifier followed by the list of file names in which it occurs.
translation bestie: every line is like "here's the thing you matched, and here's every file where it lives". iconic format, no notes β¨
π the flags (read them, they're the whole vibe) π
-f,--file=FILEβ the file name of the ID database. that's the file she's gonna go dig around in ποΈ-i,--ignore-caseβ match PATTERN case insensitively.HelloandhelloandHELLOall count, we don't discriminate here π-l,--literalβ match PATTERN as a literal string. take it exactly as written, no fancy business βοΈ-r,--regexpβ match PATTERN as a regular expression. now we're cooking π₯-w,--wordβ match PATTERN as a delimited word. whole word only, boundaries respected, she has standards π-s,--substringβ match PATTERN as a substring. anywhere inside, doesn't matter where, she'll find it π¦
Note: If PATTERN contains extended regular expression metacharacters, it is interpreted as a regular expression substring. Otherwise, PATTERN is interpreted as a literal word.
so yeah β regex characters in there? she switches to regex substring mode automatically. no regex chars? she treats it as a literal word. she's smart like that π
-k,--key=STYLEβ STYLE is one oftoken,patternornone-R,--result=STYLEβ STYLE is one offilenames,grep,editornone-S,--separator=STYLEβ STYLE is one ofbraces,spaceornewlineand only applies to file names when--result=filenames
The above STYLE options control how query results are presented. Defaults are --key=token --result=filenames --separator=space
okay so these three STYLE options are literally the aesthetic settings for your output π
--key picks what the key looks like, --result picks how results show up, --separator picks how filenames get separated (and heads up, it only kicks in for filenames when you're on --result=filenames). and if you don't say anything, the defaults are --key=token, --result=filenames, --separator=space. set and forget, periodt β¨
-F,--frequency=FREQβ find tokens that occur FREQ times, where FREQ is a range expressed asN..M. If N is omitted, it defaults to 1, if M is omitted it defaults to MAX_USHRT
so it's a range thing, written like N..M. skip N? she assumes 1. skip M? she assumes MAX_USHRT. easy π
-a,--ambiguous=LENβ find tokens whose names are ambiguous for LEN chars. like, confusing little guys. she'll track 'em down for you π-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, searches match numbers of any radix.
so if you don't pick one of -x, -d or -o, she matches numbers of any radix. pick one and she locks in π
--helpβ display this help and exit. the classic. she tells you how she works and dips π--versionβ output version information and exit. she tells you who she is and dips π
π REPORTING BUGS π
Report bugs to bug-idutils@gnu.org
found a bug? don't suffer in silence bestie, tell the idutils people at that email up there. they wanna know, fr fr π
π SEE ALSO π
The full documentation for gid is maintained as a Texinfo manual. If the info and gid programs are properly installed at your site, the command
info gid
should give you access to the complete manual.
so if you want the full lore, not just the highlight reel, run that and she'll give you everything π
and that's the whole page bestie!! π gid β version 4.6.28-15da, dated May 2020 β the little ID database gremlin who always comes through. go query something and slay πβ¨π¦
π¦ 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