REPO(1) | Repo Manual | REPO(1) |
repo - repo grep - manual page for repo grep
repo grep {pattern | -e pattern} [<project>...]
Summary
Print lines matching a pattern
Run `repo help grep` to view the detailed manual.
Search for the specified patterns in all project files.
Boolean Options
The following options can appear as often as necessary to express the pattern to locate:
-e PATTERN
--and, --or, --not, -(, -)
Further, the -r/--revision option may be specified multiple times in order to scan multiple trees. If the same file matches in more than one tree, only the first result is reported, prefixed by the revision name it was found under.
Examples
Look for a line that has '#define' and either 'MAX_PATH or 'PATH_MAX':
Look for a line that has 'NODE' or 'Unexpected' in files that contain a line that matches both expressions:
July 2022 | repo grep |