|
Index Entry
|
|
Section
|
|
|
|
|
*
|
|
|
|
|
*:
|
|
Fundamental Structure
|
|
|
|
|
+
|
|
|
|
|
+:
|
|
Fundamental Structure
|
|
|
|
|
-
|
|
|
|
|
--:
|
|
Other Options
|
|
--after-context:
|
|
Context Line Control
|
|
--basic-regexp:
|
|
grep Programs
|
|
--before-context:
|
|
Context Line Control
|
|
--binary:
|
|
Other Options
|
|
--binary-files:
|
|
File and Directory Selection
|
|
--byte-offset:
|
|
Output Line Prefix Control
|
|
--color:
|
|
General Output Control
|
|
--colour:
|
|
General Output Control
|
|
--context:
|
|
Context Line Control
|
|
--count:
|
|
General Output Control
|
|
--dereference-recursive:
|
|
File and Directory Selection
|
|
--devices:
|
|
File and Directory Selection
|
|
--directories:
|
|
File and Directory Selection
|
|
--exclude:
|
|
File and Directory Selection
|
|
--exclude-dir:
|
|
File and Directory Selection
|
|
--exclude-from:
|
|
File and Directory Selection
|
|
--extended-regexp:
|
|
grep Programs
|
|
--file:
|
|
Matching Control
|
|
--files-with-matches:
|
|
General Output Control
|
|
--files-without-match:
|
|
General Output Control
|
|
--fixed-strings:
|
|
grep Programs
|
|
--group-separator:
|
|
Context Line Control
|
|
--group-separator:
|
|
Context Line Control
|
|
--help:
|
|
Generic Program Information
|
|
--ignore-case:
|
|
Matching Control
|
|
--include:
|
|
File and Directory Selection
|
|
--initial-tab:
|
|
Output Line Prefix Control
|
|
--invert-match:
|
|
Matching Control
|
|
--label:
|
|
Output Line Prefix Control
|
|
--line-buffered:
|
|
Other Options
|
|
--line-number:
|
|
Output Line Prefix Control
|
|
--line-regexp:
|
|
Matching Control
|
|
--max-count:
|
|
General Output Control
|
|
--no-filename:
|
|
Output Line Prefix Control
|
|
--no-ignore-case:
|
|
Matching Control
|
|
--no-messages:
|
|
General Output Control
|
|
--null:
|
|
Output Line Prefix Control
|
|
--null-data:
|
|
Other Options
|
|
--only-matching:
|
|
General Output Control
|
|
--perl-regexp:
|
|
grep Programs
|
|
--quiet:
|
|
General Output Control
|
|
--recursive:
|
|
File and Directory Selection
|
|
--regexp=patterns:
|
|
Matching Control
|
|
--silent:
|
|
General Output Control
|
|
--text:
|
|
File and Directory Selection
|
|
--version:
|
|
Generic Program Information
|
|
--with-filename:
|
|
Output Line Prefix Control
|
|
--word-regexp:
|
|
Matching Control
|
|
-A:
|
|
Context Line Control
|
|
-a:
|
|
File and Directory Selection
|
|
-b:
|
|
Output Line Prefix Control
|
|
-B:
|
|
Context Line Control
|
|
-c:
|
|
General Output Control
|
|
-C:
|
|
Context Line Control
|
|
-D:
|
|
File and Directory Selection
|
|
-d:
|
|
File and Directory Selection
|
|
-e:
|
|
Matching Control
|
|
-E:
|
|
grep Programs
|
|
-f:
|
|
Matching Control
|
|
-F:
|
|
grep Programs
|
|
-G:
|
|
grep Programs
|
|
-H:
|
|
Output Line Prefix Control
|
|
-h:
|
|
Output Line Prefix Control
|
|
-i:
|
|
Matching Control
|
|
-L:
|
|
General Output Control
|
|
-l:
|
|
General Output Control
|
|
-m:
|
|
General Output Control
|
|
-n:
|
|
Output Line Prefix Control
|
|
-num:
|
|
Context Line Control
|
|
-o:
|
|
General Output Control
|
|
-P:
|
|
grep Programs
|
|
-q:
|
|
General Output Control
|
|
-r:
|
|
File and Directory Selection
|
|
-R:
|
|
File and Directory Selection
|
|
-s:
|
|
General Output Control
|
|
-T:
|
|
Output Line Prefix Control
|
|
-U:
|
|
Other Options
|
|
-V:
|
|
Generic Program Information
|
|
-v:
|
|
Matching Control
|
|
-w:
|
|
Matching Control
|
|
-x:
|
|
Matching Control
|
|
-y:
|
|
Matching Control
|
|
-Z:
|
|
Output Line Prefix Control
|
|
-z:
|
|
Other Options
|
|
|
|
|
.
|
|
|
|
|
.:
|
|
Fundamental Structure
|
|
|
|
|
?
|
|
|
|
|
?:
|
|
Fundamental Structure
|
|
|
|
|
_
|
|
|
|
|
_N_GNU_nonoption_argv_flags_ environment variable:
|
|
Environment Variables
|
|
|
|
|
{
|
|
|
|
|
{,m}:
|
|
Fundamental Structure
|
|
{n,m}:
|
|
Fundamental Structure
|
|
{n,}:
|
|
Fundamental Structure
|
|
{n}:
|
|
Fundamental Structure
|
|
|
|
|
A
|
|
|
|
|
after context:
|
|
Context Line Control
|
|
alnum character class:
|
|
Character Classes and Bracket Expressions
|
|
alpha character class:
|
|
Character Classes and Bracket Expressions
|
|
alphabetic characters:
|
|
Character Classes and Bracket Expressions
|
|
alphanumeric characters:
|
|
Character Classes and Bracket Expressions
|
|
anchoring:
|
|
Anchoring
|
|
asterisk:
|
|
Fundamental Structure
|
|
|
|
|
B
|
|
|
|
|
back-reference:
|
|
Back-references and Subexpressions
|
|
back-references:
|
|
Performance
|
|
backslash:
|
|
The Backslash Character and Special Expressions
|
|
basic regular expressions:
|
|
Basic vs Extended
|
|
before context:
|
|
Context Line Control
|
|
binary files:
|
|
File and Directory Selection
|
|
binary files:
|
|
File and Directory Selection
|
|
binary I/O:
|
|
Other Options
|
|
blank character class:
|
|
Character Classes and Bracket Expressions
|
|
blank characters:
|
|
Character Classes and Bracket Expressions
|
|
bn GREP_COLORS capability:
|
|
Environment Variables
|
|
braces, first argument omitted:
|
|
Fundamental Structure
|
|
braces, one argument:
|
|
Fundamental Structure
|
|
braces, second argument omitted:
|
|
Fundamental Structure
|
|
braces, two arguments:
|
|
Fundamental Structure
|
|
bracket expression:
|
|
Character Classes and Bracket Expressions
|
|
Bugs, known:
|
|
Known Bugs
|
|
bugs, reporting:
|
|
Reporting Bugs
|
|
byte offset:
|
|
Output Line Prefix Control
|
|
|
|
|
C
|
|
|
|
|
case insensitive search:
|
|
Matching Control
|
|
case insensitive search:
|
|
Performance
|
|
changing name of standard input:
|
|
Output Line Prefix Control
|
|
character class:
|
|
Character Classes and Bracket Expressions
|
|
character classes:
|
|
Character Classes and Bracket Expressions
|
|
character encoding:
|
|
Character Encoding
|
|
character type:
|
|
Environment Variables
|
|
classes of characters:
|
|
Character Classes and Bracket Expressions
|
|
cntrl character class:
|
|
Character Classes and Bracket Expressions
|
|
context lines:
|
|
General Output Control
|
|
context lines:
|
|
Context Line Control
|
|
context lines:
|
|
Context Line Control
|
|
context lines, after match:
|
|
Context Line Control
|
|
context lines, before match:
|
|
Context Line Control
|
|
control characters:
|
|
Character Classes and Bracket Expressions
|
|
copying:
|
|
Copying
|
|
counting lines:
|
|
General Output Control
|
|
cx GREP_COLORS capability:
|
|
Environment Variables
|
|
|
|
|
D
|
|
|
|
|
device search:
|
|
File and Directory Selection
|
|
digit character class:
|
|
Character Classes and Bracket Expressions
|
|
digit characters:
|
|
Character Classes and Bracket Expressions
|
|
directory search:
|
|
File and Directory Selection
|
|
dot:
|
|
Fundamental Structure
|
|
|
|
|
E
|
|
|
|
|
encoding error:
|
|
Environment Variables
|
|
environment variables:
|
|
Environment Variables
|
|
exclude directories:
|
|
File and Directory Selection
|
|
exclude files:
|
|
File and Directory Selection
|
|
exclude files:
|
|
File and Directory Selection
|
|
exit status:
|
|
Exit Status
|
|
|
|
|
F
|
|
|
|
|
FAQ about grep usage:
|
|
Usage
|
|
files which don’t match:
|
|
General Output Control
|
|
fn GREP_COLORS capability:
|
|
Environment Variables
|
|
fn GREP_COLORS capability:
|
|
Environment Variables
|
|
|
|
|
G
|
|
|
|
|
graph character class:
|
|
Character Classes and Bracket Expressions
|
|
graphic characters:
|
|
Character Classes and Bracket Expressions
|
|
grep programs:
|
|
grep Programs
|
|
GREP_COLOR environment variable:
|
|
Environment Variables
|
|
GREP_COLORS environment variable:
|
|
Environment Variables
|
|
group separator:
|
|
Context Line Control
|
|
group separator:
|
|
Context Line Control
|
|
|
|
|
H
|
|
|
|
|
hexadecimal digits:
|
|
Character Classes and Bracket Expressions
|
|
highlight markers:
|
|
Environment Variables
|
|
highlight markers:
|
|
Environment Variables
|
|
highlight, color, colour:
|
|
General Output Control
|
|
holes in files:
|
|
Performance
|
|
|
|
|
I
|
|
|
|
|
include files:
|
|
File and Directory Selection
|
|
interval expressions:
|
|
Fundamental Structure
|
|
interval expressions:
|
|
Basic vs Extended
|
|
invert matching:
|
|
Matching Control
|
|
|
|
|
L
|
|
|
|
|
LANG environment variable:
|
|
Environment Variables
|
|
LANG environment variable:
|
|
Environment Variables
|
|
LANG environment variable:
|
|
Environment Variables
|
|
LANG environment variable:
|
|
Environment Variables
|
|
LANGUAGE environment variable:
|
|
Environment Variables
|
|
LANGUAGE environment variable:
|
|
Environment Variables
|
|
language of messages:
|
|
Environment Variables
|
|
LC_ALL environment variable:
|
|
Environment Variables
|
|
LC_ALL environment variable:
|
|
Environment Variables
|
|
LC_ALL environment variable:
|
|
Environment Variables
|
|
LC_ALL environment variable:
|
|
Environment Variables
|
|
LC_COLLATE environment variable:
|
|
Environment Variables
|
|
LC_CTYPE environment variable:
|
|
Environment Variables
|
|
LC_MESSAGES environment variable:
|
|
Environment Variables
|
|
LC_MESSAGES environment variable:
|
|
Environment Variables
|
|
line buffering:
|
|
Other Options
|
|
line numbering:
|
|
Output Line Prefix Control
|
|
ln GREP_COLORS capability:
|
|
Environment Variables
|
|
locales:
|
|
Performance
|
|
lower character class:
|
|
Character Classes and Bracket Expressions
|
|
lower-case letters:
|
|
Character Classes and Bracket Expressions
|
|
|
|
|
M
|
|
|
|
|
match expression at most m times:
|
|
Fundamental Structure
|
|
match expression at most once:
|
|
Fundamental Structure
|
|
match expression from n to m times:
|
|
Fundamental Structure
|
|
match expression n or more times:
|
|
Fundamental Structure
|
|
match expression n times:
|
|
Fundamental Structure
|
|
match expression one or more times:
|
|
Fundamental Structure
|
|
match expression zero or more times:
|
|
Fundamental Structure
|
|
match the whole line:
|
|
Matching Control
|
|
matching basic regular expressions:
|
|
grep Programs
|
|
matching extended regular expressions:
|
|
grep Programs
|
|
matching fixed strings:
|
|
grep Programs
|
|
matching Perl-compatible regular expressions:
|
|
grep Programs
|
|
matching whole words:
|
|
Matching Control
|
|
max-count:
|
|
General Output Control
|
|
mc GREP_COLORS capability:
|
|
Environment Variables
|
|
message language:
|
|
Environment Variables
|
|
ms GREP_COLORS capability:
|
|
Environment Variables
|
|
MS-Windows binary I/O:
|
|
Other Options
|
|
mt GREP_COLORS capability:
|
|
Environment Variables
|
|
|
|
|
N
|
|
|
|
|
names of matching files:
|
|
General Output Control
|
|
national language support:
|
|
Environment Variables
|
|
national language support:
|
|
Environment Variables
|
|
ne GREP_COLORS capability:
|
|
Environment Variables
|
|
NLS:
|
|
Environment Variables
|
|
no filename prefix:
|
|
Output Line Prefix Control
|
|
non-ASCII matching:
|
|
Matching Non-ASCII
|
|
non-printable matching:
|
|
Matching Non-ASCII
|
|
null character:
|
|
Environment Variables
|
|
numeric characters:
|
|
Character Classes and Bracket Expressions
|
|
|
|
|
O
|
|
|
|
|
only matching:
|
|
General Output Control
|
|
option delimiter:
|
|
Other Options
|
|
ordinary characters:
|
|
Fundamental Structure
|
|
|
|
|
P
|
|
|
|
|
patterns from file:
|
|
Matching Control
|
|
patterns option:
|
|
Matching Control
|
|
performance:
|
|
Performance
|
|
period:
|
|
Fundamental Structure
|
|
plus sign:
|
|
Fundamental Structure
|
|
POSIXLY_CORRECT environment variable:
|
|
Environment Variables
|
|
print character class:
|
|
Character Classes and Bracket Expressions
|
|
print non-matching lines:
|
|
Matching Control
|
|
printable characters:
|
|
Character Classes and Bracket Expressions
|
|
punct character class:
|
|
Character Classes and Bracket Expressions
|
|
punctuation characters:
|
|
Character Classes and Bracket Expressions
|
|
|
|
|
Q
|
|
|
|
|
question mark:
|
|
Fundamental Structure
|
|
quiet, silent:
|
|
General Output Control
|
|
|
|
|
R
|
|
|
|
|
range expression:
|
|
Character Classes and Bracket Expressions
|
|
recursive search:
|
|
File and Directory Selection
|
|
recursive search:
|
|
File and Directory Selection
|
|
regular expressions:
|
|
Regular Expressions
|
|
return status:
|
|
Exit Status
|
|
rv GREP_COLORS capability:
|
|
Environment Variables
|
|
|
|
|
S
|
|
|
|
|
searching directory trees:
|
|
File and Directory Selection
|
|
searching directory trees:
|
|
File and Directory Selection
|
|
searching directory trees:
|
|
File and Directory Selection
|
|
searching directory trees:
|
|
File and Directory Selection
|
|
searching directory trees:
|
|
File and Directory Selection
|
|
searching for patterns:
|
|
Introduction
|
|
sl GREP_COLORS capability:
|
|
Environment Variables
|
|
space character class:
|
|
Character Classes and Bracket Expressions
|
|
space characters:
|
|
Character Classes and Bracket Expressions
|
|
special characters:
|
|
Fundamental Structure
|
|
subexpression:
|
|
Back-references and Subexpressions
|
|
suppress binary data:
|
|
File and Directory Selection
|
|
suppress error messages:
|
|
General Output Control
|
|
symbolic links:
|
|
File and Directory Selection
|
|
symbolic links:
|
|
File and Directory Selection
|
|
symbolic links:
|
|
File and Directory Selection
|
|
|
|
|
T
|
|
|
|
|
tab-aligned content lines:
|
|
Output Line Prefix Control
|
|
translation of message language:
|
|
Environment Variables
|
|
|
|
|
U
|
|
|
|
|
upper character class:
|
|
Character Classes and Bracket Expressions
|
|
upper-case letters:
|
|
Character Classes and Bracket Expressions
|
|
usage summary, printing:
|
|
Generic Program Information
|
|
usage, examples:
|
|
Usage
|
|
using grep, Q&A:
|
|
Usage
|
|
|
|
|
V
|
|
|
|
|
variants of grep:
|
|
grep Programs
|
|
version, printing:
|
|
Generic Program Information
|
|
|
|
|
W
|
|
|
|
|
whitespace characters:
|
|
Character Classes and Bracket Expressions
|
|
with filename prefix:
|
|
Output Line Prefix Control
|
|
|
|
|
X
|
|
|
|
|
xdigit character class:
|
|
Character Classes and Bracket Expressions
|
|
xdigit class:
|
|
Character Classes and Bracket Expressions
|
|
|
|
|
Z
|
|
|
|
|
zero-terminated file names:
|
|
Output Line Prefix Control
|
|
zero-terminated lines:
|
|
Other Options
|
|
|
|
|