GREP is a filter that searches input files, or the standard input, for lines that contain matches for one or more patterns called regular expressions and displays those matching lines.
This document is the complete revision history. To use GREP, please see the user guide.
/F-
option.
/I
, character classes entered in
lower case were expanded incorrectly.
/U
option (UNIX-style output) and the
/Q
option (quiet). Distinguish between option errors in
the environment variable and on the command line.
/P
); diagnose conflicts
only after the last option has been scanned.
/D
(debug), which
is no longer a toggle.
/P
(show context lines) to 2,2 if user specifies
/P
without numbers.
/F
option (multiple regular expressions in a
file).
/P
option, remove the < > widgets
around the line numbers of the context lines, so that the lines
that actually match are more easily seen.
/L
option.
[]
as a user error, not an internal error.
/S
option (search subdirectories), because
GREP's code now uses the C run-time library to interpret file specs on
the command line.
[...]
in regular expressions, the
backslash was swallowing an extra character.
/0
and /1
options to control
exit status.
/D
now shows the number of matches in each
file, total matches, and exit status.
\0x9A
, \045
,
and \211
in the regular expression.
/P
option (show context lines around the
actual matches).
/D
is on the command line.
+
in regular expressions (match one or more
occurrences).
/S
option (search subdirectories).
/B
option: now the default
is to show only the names of matching files.
/C
(count matches) is
specified and /B
is not.
[...]
character classes containing the range
character -
weren't always expanded correctly.
/B
option (show only the names of files that
contain matches).
/D
option show the input pattern as well as
the decoded version.
[...]
weren't working with
the /I
option.
/I
option (ignore case).
\e
(escape) and
\q
(equal sign).