aboutsummaryrefslogtreecommitdiff
blob: 70d7ebab7979dede54ecadd00a8745f8dcd9fd1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
.\" generated by mkman.py, please do NOT edit!
.TH qgrep "1" "Nov 2020" "Gentoo Foundation" "qgrep"
.SH NAME
qgrep \- grep in ebuilds
.SH SYNOPSIS
.B qgrep
\fI[opts] <expr> [pkg ...]\fR
.SH DESCRIPTION
\fIqgrep\fR searches for a given expression in all ebuilds of the
current portage tree and defined additional overlays.  Optionally the
search is in all eclasses, or just in the ebuilds that are currently
installed.  To narrow the search, multiple targets can be given using
atom syntax.  In particular, the trailing slash (/) syntax can be used
to match an entire category.  See also \fBqatom\fR(1).
.SH OPTIONS
.TP
\fB\-I\fR, \fB\-\-invert\-match\fR
Select non-matching lines.
.TP
\fB\-i\fR, \fB\-\-ignore\-case\fR
Ignore case distinctions.
.TP
\fB\-N\fR, \fB\-\-atom\-name\fR
Print the atom instead of filename for each match.
.TP
\fB\-c\fR, \fB\-\-count\fR
Only print a count of matching lines per FILE.
.TP
\fB\-l\fR, \fB\-\-list\fR
Only print FILE names containing matches.
.TP
\fB\-L\fR, \fB\-\-invert\-list\fR
Only print FILE names containing no match.
.TP
\fB\-e\fR, \fB\-\-regexp\fR
Use PATTERN as a regular expression.
.TP
\fB\-x\fR, \fB\-\-extended\fR
Use PATTERN as an extended regular expression.
.TP
\fB\-J\fR, \fB\-\-installed\fR
Search in installed ebuilds instead of the tree.
.TP
\fB\-E\fR, \fB\-\-eclass\fR
Search in eclasses instead of ebuilds.
.TP
\fB\-s\fR, \fB\-\-skip\-comments\fR
Skip comments lines.
.TP
\fB\-R\fR, \fB\-\-repo\fR
Print source repository name for each match (implies -N).
.TP
\fB\-S\fR \fI<arg>\fR, \fB\-\-skip\fR \fI<arg>\fR
Skip lines matching <arg>.
.TP
\fB\-B\fR \fI<arg>\fR, \fB\-\-before\fR \fI<arg>\fR
Print <arg> lines of leading context.
.TP
\fB\-A\fR \fI<arg>\fR, \fB\-\-after\fR \fI<arg>\fR
Print <arg> lines of trailing context.
.TP
\fB\-\-root\fR \fI<arg>\fR
Set the ROOT env var.
.TP
\fB\-v\fR, \fB\-\-verbose\fR
Prefix each matching line with filename (like \fB-H\fR).  When this
option is given multiple times, also linenumbers are printed.
.TP
\fB\-q\fR, \fB\-\-quiet\fR
Do not prefix each match with filename.
.TP
\fB\-C\fR, \fB\-\-nocolor\fR
Don't output color.
.TP
\fB\-h\fR, \fB\-\-help\fR
Print this help and exit.
.TP
\fB\-V\fR, \fB\-\-version\fR
Print version and exit.

.SH "REPORTING BUGS"
Please report bugs via http://bugs.gentoo.org/
.br
Product: Portage Development; Component: Tools
.SH AUTHORS
.nf
Ned Ludd <solar@gentoo.org>
Mike Frysinger <vapier@gentoo.org>
Fabian Groffen <grobian@gentoo.org>
.fi
.SH "SEE ALSO"
.BR q (1),
.BR qatom (1),
.BR qcheck (1),
.BR qdepends (1),
.BR qfile (1),
.BR qkeyword (1),
.BR qlist (1),
.BR qlop (1),
.BR qmanifest (1),
.BR qmerge (1),
.BR qpkg (1),
.BR qsearch (1),
.BR qsize (1),
.BR qtbz2 (1),
.BR qtegrity (1),
.BR quse (1),
.BR qxpak (1)