lid
linux
Query an ID database for tokens matching a pattern. Note: An ID database must first be built using `mkid`.
More info →Options (4)
-i, --ignore-casebooleanFind tokens matching a pattern, ignoring case
Example:
lid {{[-i|--ignore-case]}} {{token}}-r, --regexpbooleanFind tokens matching an extended `regex`
Example:
lid {{[-r|--regexp]}} "{{pattern}}"-R, --resultbooleanOutput matching lines in grep-style format
Example:
lid {{[-R|--result]}} grep {{token}}-F, --frequencybooleanFind tokens that appear only once (useful for finding unused definitions)
Example:
lid {{[-F|--frequency]}} 1Examples (6)
List all tokens and their file locations in the ID database
Find files containing a specific token
lid tokenFind tokens matching a pattern, ignoring case
lid [-i|--ignore-case] tokenFind tokens matching an extended `regex`
lid [-r|--regexp] "pattern"Find tokens that appear only once (useful for finding unused definitions)
lid [-F|--frequency] 1made by @shridhargupta | data from tldr-pages