grep-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changes to grep/manual/grep.txt,v


From: Jim Meyering
Subject: Changes to grep/manual/grep.txt,v
Date: Sat, 14 Aug 2021 16:46:42 -0400 (EDT)

CVSROOT:        /webcvs/grep
Module name:    grep
Changes by:     Jim Meyering <meyering> 21/08/14 16:46:41

Index: grep.txt
===================================================================
RCS file: /webcvs/grep/grep/manual/grep.txt,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -b -r1.31 -r1.32
--- grep.txt    28 Sep 2020 03:36:48 -0000      1.31
+++ grep.txt    14 Aug 2021 20:46:39 -0000      1.32
@@ -33,11 +33,11 @@
 
 ‘grep’ prints lines that contain a match for one or more patterns.
 
-   This manual is for version 3.5 of GNU Grep.
+   This manual is for version 3.7 of GNU Grep.
 
    This manual is for ‘grep’, a pattern matching engine.
 
-   Copyright © 1999–2002, 2005, 2008–2020 Free Software Foundation, Inc.
+   Copyright © 1999–2002, 2005, 2008–2021 Free Software Foundation, Inc.
 
      Permission is granted to copy, distribute and/or modify this
      document under the terms of the GNU Free Documentation License,
@@ -201,15 +201,13 @@
 ‘-L’
 ‘--files-without-match’
      Suppress normal output; instead print the name of each input file
-     from which no output would normally have been printed.  The
-     scanning of each file stops on the first match.
+     from which no output would normally have been printed.
 
 ‘-l’
 ‘--files-with-matches’
      Suppress normal output; instead print the name of each input file
-     from which output would normally have been printed.  The scanning
-     of each file stops on the first match.  (‘-l’ is specified by
-     POSIX.)
+     from which output would normally have been printed.  Scanning each
+     input file stops upon first match.  (‘-l’ is specified by POSIX.)
 
 ‘-m NUM’
 ‘--max-count=NUM’
@@ -475,7 +473,10 @@
 
 ‘--include=GLOB’
      Search only files whose name matches GLOB, using wildcard matching
-     as described under ‘--exclude’.
+     as described under ‘--exclude’.  If contradictory ‘--include’ and
+     ‘--exclude’ options are given, the last matching one wins.  If no
+     ‘--include’ or ‘--exclude’ options match, a file is included 
unless
+     the first such option is ‘--include’.
 
 ‘-r’
 ‘--recursive’
@@ -576,19 +577,6 @@
 capabilities are stored in an online database and accessed by the
 ‘terminfo’ library.
 
-‘GREP_OPTIONS’
-     This variable specifies default options to be placed in front of
-     any explicit options.  As this causes problems when writing
-     portable scripts, this feature will be removed in a future release
-     of ‘grep’, and ‘grep’ warns if it is used.  Please use an alias or
-     script instead.  For example, if ‘grep’ is in the directory
-     ‘/usr/bin’ you can prepend ‘$HOME/bin’ to your ‘PATH’ and 
create an
-     executable script ‘$HOME/bin/grep’ containing the following:
-
-          #! /bin/sh
-          export PATH=/usr/bin
-          exec grep --color=auto --devices=skip "$@"
-
 ‘GREP_COLOR’
      This variable specifies the color used to highlight matched
      (non-empty) text.  It is deprecated in favor of ‘GREP_COLORS’, but
@@ -732,6 +720,17 @@
      This behavior is available only with the GNU C library, and only
      when ‘POSIXLY_CORRECT’ is not set.
 
+   The ‘GREP_OPTIONS’ environment variable of ‘grep’ 2.20 and earlier 
is
+no longer supported, as it caused problems when writing portable
+scripts.  To make arbitrary changes to how ‘grep’ works, you can use an
+alias or script instead.  For example, if ‘grep’ is in the directory
+‘/usr/bin’ you can prepend ‘$HOME/bin’ to your ‘PATH’ and create an
+executable script ‘$HOME/bin/grep’ containing the following:
+
+     #! /bin/sh
+     export PATH=/usr/bin
+     exec grep --color=auto --devices=skip "$@"
+
 2.3 Exit Status
 ===============
 
@@ -800,25 +799,26 @@
 3.1 Fundamental Structure
 =========================
 
-The fundamental building blocks are the regular expressions that match a
-single character.  Most characters, including all letters and digits,
-are regular expressions that match themselves.  Any meta-character with
-special meaning may be quoted by preceding it with a backslash.
+In regular expressions, the characters ‘.?*+{|()[\^$’ are “special
+characters” and have uses described below.  All other characters are
+“ordinary characters”, and each ordinary character is a regular
+expression that matches itself.
 
    The period ‘.’ matches any single character.  It is unspecified
 whether ‘.’ matches an encoding error.
 
    A regular expression may be followed by one of several repetition
-operators:
+operators; the operators beginning with ‘{’ are called “interval
+expressions”.
 
 ‘?’
-     The preceding item is optional and will be matched at most once.
+     The preceding item is optional and is matched at most once.
 
 ‘*’
-     The preceding item will be matched zero or more times.
+     The preceding item is matched zero or more times.
 
 ‘+’
-     The preceding item will be matched one or more times.
+     The preceding item is matched one or more times.
 
 ‘{N}’
      The preceding item is matched exactly N times.
@@ -933,7 +933,7 @@
 equivalent regular expression: ‘[:epru]’.  Set the ‘POSIXLY_CORRECT’
 environment variable to disable this feature.
 
-   Most meta-characters lose their special meaning inside bracket
+   Special characters lose their special meaning inside bracket
 expressions.
 
 ‘]’
@@ -971,8 +971,9 @@
 3.3 The Backslash Character and Special Expressions
 ===================================================
 
-The ‘\’ character, when followed by certain ordinary characters, takes a
-special meaning:
+The ‘\’ character followed by a special character is a regular
+expression that matches the special character.  The ‘\’ character, when
+followed by certain ordinary characters, takes a special meaning:
 
 ‘\b’
      Match the empty string at the edge of a word.
@@ -981,10 +982,10 @@
      Match the empty string provided it’s not at the edge of a word.
 
 ‘\<’
-     Match the empty string at the beginning of word.
+     Match the empty string at the beginning of a word.
 
 ‘\>’
-     Match the empty string at the end of word.
+     Match the empty string at the end of a word.
 
 ‘\w’
      Match word constituent, it is a synonym for ‘[_[:alnum:]]’.
@@ -1004,7 +1005,7 @@
 3.4 Anchoring
 =============
 
-The caret ‘^’ and the dollar sign ‘$’ are meta-characters that
+The caret ‘^’ and the dollar sign ‘$’ are special characters that
 respectively match the empty string at the beginning and end of a line.
 They are termed “anchors”, since they force the match to be “anchored”
 to beginning or end of a line, respectively.
@@ -1012,32 +1013,51 @@
 3.5 Back-references and Subexpressions
 ======================================
 
-The back-reference ‘\N’, where N is a single digit, matches the
+The back-reference ‘\N’, where N is a single nonzero digit, matches the
 substring previously matched by the Nth parenthesized subexpression of
-the regular expression.  For example, ‘(a)\1’ matches ‘aa’.  When used
-with alternation, if the group does not participate in the match then
-the back-reference makes the whole match fail.  For example, ‘a(.)|b\1’
-will not match ‘ba’.  When multiple regular expressions are given with
-‘-e’ or from a file (‘-f FILE’), back-references are local to each
-expression.
+the regular expression.  For example, ‘(a)\1’ matches ‘aa’.  If the
+parenthesized subexpression does not participate in the match, the
+back-reference makes the whole match fail; for example, ‘(a)*\1’ fails
+to match ‘a’.  If the parenthesized subexpression matches more than one
+substring, the back-reference refers to the last matched substring; for
+example, ‘^(ab*)*\1$’ matches ‘ababbabb’ but not ‘ababbab’.  When
+multiple regular expressions are given with ‘-e’ or from a file (‘-f
+FILE’), back-references are local to each expression.
 
    *Note Known Bugs::, for some known problems with back-references.
 
 3.6 Basic vs Extended Regular Expressions
 =========================================
 
-In basic regular expressions the meta-characters ‘?’, ‘+’, ‘{’, 
‘|’,
-‘(’, and ‘)’ lose their special meaning; instead use the backslashed
-versions ‘\?’, ‘\+’, ‘\{’, ‘\|’, ‘\(’, and ‘\)’.
-
-   Traditional ‘egrep’ did not support the ‘{’ meta-character, and some
-‘egrep’ implementations support ‘\{’ instead, so portable scripts 
should
-avoid ‘{’ in ‘grep -E’ patterns and should use ‘[{]’ to match a 
literal
-‘{’.
+In basic regular expressions the characters ‘?’, ‘+’, ‘{’, 
‘|’, ‘(’, and
+‘)’ lose their special meaning; instead use the backslashed versions
+‘\?’, ‘\+’, ‘\{’, ‘\|’, ‘\(’, and ‘\)’.  Also, a 
backslash is needed
+before an interval expression’s closing ‘}’, and an unmatched ‘\)’ is
+invalid.
+
+   Portable scripts should avoid the following constructs, as POSIX says
+they produce undefined results:
+
+   • Extended regular expressions that use back-references.
+   • Basic regular expressions that use ‘\?’, ‘\+’, or ‘\|’.
+   • Empty parenthesized regular expressions like ‘()’.
+   • Empty alternatives (as in, e.g, ‘a|’).
+   • Repetition operators that immediately follow empty expressions,
+     unescaped ‘$’, or other repetition operators.
+   • A backslash escaping an ordinary character (e.g., ‘\S’), unless it
+     is a back-reference.
+   • An unescaped ‘[’ that is not part of a bracket expression.
+   • In extended regular expressions, an unescaped ‘{’ that is not part
+     of an interval expression.
+
+   Traditional ‘egrep’ did not support interval expressions and some
+‘egrep’ implementations use ‘\{’ and ‘\}’ instead, so portable 
scripts
+should avoid interval expressions in ‘grep -E’ patterns and should use
+‘[{]’ to match a literal ‘{’.
 
    GNU ‘grep -E’ attempts to support traditional usage by assuming that
 ‘{’ is not special if it would be the start of an invalid interval
-specification.  For example, the command ‘grep -E '{1'’ searches for the
+expression.  For example, the command ‘grep -E '{1'’ searches for the
 two-character string ‘{1’ instead of reporting a syntax error in the
 regular expression.  POSIX allows this behavior as an extension, but
 portable scripts should avoid it.
@@ -1113,20 +1133,19 @@
 Expressions::.  The ‘-i’ option causes ‘grep’ to ignore case, causing 
it
 to match the line ‘Hello, world!’, which it would not otherwise match.
 
-   Here is a more complex example session, showing the location and
-contents of any line containing ‘f’ and ending in ‘.c’, within all 
files
-in the current directory whose names contain ‘g’ and end in ‘.h’.  The
-‘-n’ option outputs line numbers, the ‘--’ argument treats any later
-arguments starting with ‘-’ as file names not options, and the empty
-file ‘/dev/null’ causes file names to be output even if only one file
-name happens to be of the form ‘*g*.h’.
-
-     $ grep -n -- 'f.*\.c$' *g*.h /dev/null
-     argmatch.h:1:/* definitions and prototypes for argmatch.c
-
-The only line that contains a match is line 1 of ‘argmatch.h’.  Note
-that the regular expression syntax used in the pattern differs from the
-globbing syntax that the shell uses to match file names.
+   Here is a more complex example, showing the location and contents of
+any line containing ‘f’ and ending in ‘.c’, within all files in the
+current directory whose names start with non-‘.’, contain ‘g’, and end
+in ‘.h’.  The ‘-n’ option outputs line numbers, the ‘--’ argument 
treats
+any later arguments as file names not options even if ‘*g*.h’ expands to
+a file name that starts with ‘-’, and the empty file ‘/dev/null’ causes
+file names to be output even if only one file name happens to be of the
+form ‘*g*.h’.
+
+     grep -n -- 'f.*\.c$' *g*.h /dev/null
+
+Note that the regular expression syntax used in the pattern differs from
+the globbing syntax that the shell uses to match file names.
 
    *Note Invoking::, for more details about how to invoke ‘grep’.
 
@@ -1263,11 +1282,8 @@
 
           echo 'ba' | grep -E '(a)\1|b\1'
 
-     This gives no output, because the first alternate ‘(a)\1’ does not
-     match, as there is no ‘aa’ in the input, so the ‘\1’ in the second
-     alternate has nothing to refer back to, meaning it will never match
-     anything.  (The second alternate in this example can only match if
-     the first alternate has matched—making the second one superfluous.)
+     This outputs an error message, because the second ‘\1’ has nothing
+     to refer back to, meaning it will never match anything.
 
   14. How can I match across lines?
 
@@ -1390,7 +1406,7 @@
 at times unclear.  Furthermore, many regular expression implementations
 have back-reference bugs that can cause programs to return incorrect
 answers or even crash, and fixing these bugs has often been
-low-priority: for example, as of 2020 the GNU C library bug database
+low-priority: for example, as of 2021 the GNU C library bug database
 (https://sourceware.org/bugzilla/) contained back-reference bugs 52,
 10844, 11053, 24269 and 25322, with little sign of forthcoming fixes.
 Luckily, back-references are rarely useful and it should be little
@@ -1907,139 +1923,139 @@
                                                              (line  817)
 * +:                                     Fundamental Structure.
                                                              (line  820)
-* --:                                    Other Options.      (line  496)
+* --:                                    Other Options.      (line  497)
 * --after-context:                       Context Line Control.
-                                                             (line  341)
-* --basic-regexp:                        grep Programs.      (line  755)
+                                                             (line  339)
+* --basic-regexp:                        grep Programs.      (line  754)
 * --before-context:                      Context Line Control.
-                                                             (line  345)
-* --binary:                              Other Options.      (line  511)
+                                                             (line  343)
+* --binary:                              Other Options.      (line  512)
 * --binary-files:                        File and Directory Selection.
-                                                             (line  391)
+                                                             (line  389)
 * --byte-offset:                         Output Line Prefix Control.
-                                                             (line  282)
+                                                             (line  280)
 * --color:                               General Output Control.
                                                              (line  187)
 * --colour:                              General Output Control.
                                                              (line  187)
 * --context:                             Context Line Control.
-                                                             (line  350)
+                                                             (line  348)
 * --count:                               General Output Control.
                                                              (line  181)
 * --dereference-recursive:               File and Directory Selection.
-                                                             (line  489)
+                                                             (line  490)
 * --devices:                             File and Directory Selection.
-                                                             (line  430)
+                                                             (line  428)
 * --directories:                         File and Directory Selection.
-                                                             (line  441)
+                                                             (line  439)
 * --exclude:                             File and Directory Selection.
-                                                             (line  452)
+                                                             (line  450)
 * --exclude-dir:                         File and Directory Selection.
-                                                             (line  466)
+                                                             (line  464)
 * --exclude-from:                        File and Directory Selection.
-                                                             (line  462)
-* --extended-regexp:                     grep Programs.      (line  760)
+                                                             (line  460)
+* --extended-regexp:                     grep Programs.      (line  759)
 * --file:                                Matching Control.   (line  115)
 * --files-with-matches:                  General Output Control.
-                                                             (line  208)
+                                                             (line  207)
 * --files-without-match:                 General Output Control.
                                                              (line  202)
-* --fixed-strings:                       grep Programs.      (line  765)
+* --fixed-strings:                       grep Programs.      (line  764)
 * --group-separator:                     Context Line Control.
-                                                             (line  353)
+                                                             (line  351)
 * --group-separator <1>:                 Context Line Control.
-                                                             (line  357)
+                                                             (line  355)
 * --help:                                Generic Program Information.
                                                              (line   93)
 * --ignore-case:                         Matching Control.   (line  124)
 * --include:                             File and Directory Selection.
-                                                             (line  476)
+                                                             (line  474)
 * --initial-tab:                         Output Line Prefix Control.
-                                                             (line  311)
+                                                             (line  309)
 * --invert-match:                        Matching Control.   (line  149)
 * --label:                               Output Line Prefix Control.
-                                                             (line  298)
-* --line-buffered:                       Other Options.      (line  502)
+                                                             (line  296)
+* --line-buffered:                       Other Options.      (line  503)
 * --line-number:                         Output Line Prefix Control.
-                                                             (line  306)
+                                                             (line  304)
 * --line-regexp:                         Matching Control.   (line  171)
 * --max-count:                           General Output Control.
-                                                             (line  215)
+                                                             (line  213)
 * --no-filename:                         Output Line Prefix Control.
-                                                             (line  293)
+                                                             (line  291)
 * --no-ignore-case:                      Matching Control.   (line  142)
 * --no-messages:                         General Output Control.
-                                                             (line  260)
+                                                             (line  258)
 * --null:                                Output Line Prefix Control.
-                                                             (line  320)
-* --null-data:                           Other Options.      (line  532)
+                                                             (line  318)
+* --null-data:                           Other Options.      (line  533)
 * --only-matching:                       General Output Control.
-                                                             (line  245)
-* --perl-regexp:                         grep Programs.      (line  770)
+                                                             (line  243)
+* --perl-regexp:                         grep Programs.      (line  769)
 * --quiet:                               General Output Control.
-                                                             (line  253)
+                                                             (line  251)
 * --recursive:                           File and Directory Selection.
-                                                             (line  481)
+                                                             (line  482)
 * --regexp=PATTERNS:                     Matching Control.   (line  106)
 * --silent:                              General Output Control.
-                                                             (line  253)
+                                                             (line  251)
 * --text:                                File and Directory Selection.
-                                                             (line  387)
+                                                             (line  385)
 * --version:                             Generic Program Information.
                                                              (line   98)
 * --with-filename:                       Output Line Prefix Control.
-                                                             (line  288)
+                                                             (line  286)
 * --word-regexp:                         Matching Control.   (line  154)
 * -A:                                    Context Line Control.
-                                                             (line  341)
+                                                             (line  339)
 * -a:                                    File and Directory Selection.
-                                                             (line  387)
+                                                             (line  385)
 * -b:                                    Output Line Prefix Control.
-                                                             (line  282)
+                                                             (line  280)
 * -B:                                    Context Line Control.
-                                                             (line  345)
+                                                             (line  343)
 * -c:                                    General Output Control.
                                                              (line  181)
 * -C:                                    Context Line Control.
-                                                             (line  350)
+                                                             (line  348)
 * -D:                                    File and Directory Selection.
-                                                             (line  430)
+                                                             (line  428)
 * -d:                                    File and Directory Selection.
-                                                             (line  441)
+                                                             (line  439)
 * -e:                                    Matching Control.   (line  106)
-* -E:                                    grep Programs.      (line  760)
+* -E:                                    grep Programs.      (line  759)
 * -f:                                    Matching Control.   (line  115)
-* -F:                                    grep Programs.      (line  765)
-* -G:                                    grep Programs.      (line  755)
+* -F:                                    grep Programs.      (line  764)
+* -G:                                    grep Programs.      (line  754)
 * -H:                                    Output Line Prefix Control.
-                                                             (line  288)
+                                                             (line  286)
 * -h:                                    Output Line Prefix Control.
-                                                             (line  293)
+                                                             (line  291)
 * -i:                                    Matching Control.   (line  124)
 * -L:                                    General Output Control.
                                                              (line  202)
 * -l:                                    General Output Control.
-                                                             (line  208)
+                                                             (line  207)
 * -m:                                    General Output Control.
-                                                             (line  215)
+                                                             (line  213)
 * -n:                                    Output Line Prefix Control.
-                                                             (line  306)
+                                                             (line  304)
 * -NUM:                                  Context Line Control.
-                                                             (line  350)
+                                                             (line  348)
 * -o:                                    General Output Control.
-                                                             (line  245)
-* -P:                                    grep Programs.      (line  770)
+                                                             (line  243)
+* -P:                                    grep Programs.      (line  769)
 * -q:                                    General Output Control.
-                                                             (line  253)
+                                                             (line  251)
 * -r:                                    File and Directory Selection.
-                                                             (line  481)
+                                                             (line  482)
 * -R:                                    File and Directory Selection.
-                                                             (line  489)
+                                                             (line  490)
 * -s:                                    General Output Control.
-                                                             (line  260)
+                                                             (line  258)
 * -T:                                    Output Line Prefix Control.
-                                                             (line  311)
-* -U:                                    Other Options.      (line  511)
+                                                             (line  309)
+* -U:                                    Other Options.      (line  512)
 * -V:                                    Generic Program Information.
                                                              (line   98)
 * -v:                                    Matching Control.   (line  149)
@@ -2047,14 +2063,14 @@
 * -x:                                    Matching Control.   (line  171)
 * -y:                                    Matching Control.   (line  124)
 * -Z:                                    Output Line Prefix Control.
-                                                             (line  320)
-* -z:                                    Other Options.      (line  532)
+                                                             (line  318)
+* -z:                                    Other Options.      (line  533)
 * .:                                     Fundamental Structure.
-                                                             (line  807)
+                                                             (line  806)
 * ?:                                     Fundamental Structure.
                                                              (line  814)
 * _N_GNU_nonoption_argv_flags_ environment variable: Environment Variables.
-                                                             (line  725)
+                                                             (line  713)
 * {,M}:                                  Fundamental Structure.
                                                              (line  829)
 * {N,M}:                                 Fundamental Structure.
@@ -2064,7 +2080,7 @@
 * {N}:                                   Fundamental Structure.
                                                              (line  823)
 * after context:                         Context Line Control.
-                                                             (line  341)
+                                                             (line  339)
 * alnum character class:                 Character Classes and Bracket 
Expressions.
                                                              (line  878)
 * alpha character class:                 Character Classes and Bracket 
Expressions.
@@ -2073,28 +2089,28 @@
                                                              (line  883)
 * alphanumeric characters:               Character Classes and Bracket 
Expressions.
                                                              (line  878)
-* anchoring:                             Anchoring.          (line 1006)
+* anchoring:                             Anchoring.          (line 1007)
 * asterisk:                              Fundamental Structure.
                                                              (line  817)
 * back-reference:                        Back-references and Subexpressions.
-                                                             (line 1014)
-* back-references:                       Performance.        (line 1330)
+                                                             (line 1015)
+* back-references:                       Performance.        (line 1346)
 * backslash:                             The Backslash Character and Special 
Expressions.
                                                              (line  973)
-* basic regular expressions:             Basic vs Extended.  (line 1028)
+* basic regular expressions:             Basic vs Extended.  (line 1031)
 * before context:                        Context Line Control.
-                                                             (line  345)
+                                                             (line  343)
 * binary files:                          File and Directory Selection.
-                                                             (line  387)
+                                                             (line  385)
 * binary files <1>:                      File and Directory Selection.
-                                                             (line  391)
-* binary I/O:                            Other Options.      (line  511)
+                                                             (line  389)
+* binary I/O:                            Other Options.      (line  512)
 * blank character class:                 Character Classes and Bracket 
Expressions.
                                                              (line  888)
 * blank characters:                      Character Classes and Bracket 
Expressions.
                                                              (line  888)
 * bn GREP_COLORS capability:             Environment Variables.
-                                                             (line  668)
+                                                             (line  656)
 * braces, first argument omitted:        Fundamental Structure.
                                                              (line  829)
 * braces, one argument:                  Fundamental Structure.
@@ -2105,136 +2121,134 @@
                                                              (line  833)
 * bracket expression:                    Character Classes and Bracket 
Expressions.
                                                              (line  853)
-* Bugs, known:                           Known Bugs.         (line 1381)
-* bugs, reporting:                       Reporting Bugs.     (line 1373)
+* Bugs, known:                           Known Bugs.         (line 1397)
+* bugs, reporting:                       Reporting Bugs.     (line 1389)
 * byte offset:                           Output Line Prefix Control.
-                                                             (line  282)
+                                                             (line  280)
 * case insensitive search:               Matching Control.   (line  124)
-* case insensitive search <1>:           Performance.        (line 1325)
+* case insensitive search <1>:           Performance.        (line 1341)
 * changing name of standard input:       Output Line Prefix Control.
-                                                             (line  298)
+                                                             (line  296)
 * character class:                       Character Classes and Bracket 
Expressions.
                                                              (line  853)
 * character classes:                     Character Classes and Bracket 
Expressions.
                                                              (line  877)
-* character encoding:                    Character Encoding. (line 1047)
+* character encoding:                    Character Encoding. (line 1067)
 * character type:                        Environment Variables.
-                                                             (line  695)
+                                                             (line  683)
 * classes of characters:                 Character Classes and Bracket 
Expressions.
                                                              (line  877)
 * cntrl character class:                 Character Classes and Bracket 
Expressions.
                                                              (line  891)
 * context lines:                         General Output Control.
-                                                             (line  237)
+                                                             (line  235)
 * context lines <1>:                     Context Line Control.
-                                                             (line  332)
+                                                             (line  330)
 * context lines <2>:                     Context Line Control.
-                                                             (line  350)
+                                                             (line  348)
 * context lines, after match:            Context Line Control.
-                                                             (line  341)
+                                                             (line  339)
 * context lines, before match:           Context Line Control.
-                                                             (line  345)
+                                                             (line  343)
 * control characters:                    Character Classes and Bracket 
Expressions.
                                                              (line  891)
-* copying:                               Copying.            (line 1401)
+* copying:                               Copying.            (line 1417)
 * counting lines:                        General Output Control.
                                                              (line  181)
 * cx GREP_COLORS capability:             Environment Variables.
-                                                             (line  619)
-* default options environment variable:  Environment Variables.
-                                                             (line  579)
+                                                             (line  607)
 * device search:                         File and Directory Selection.
-                                                             (line  430)
+                                                             (line  428)
 * digit character class:                 Character Classes and Bracket 
Expressions.
                                                              (line  896)
 * digit characters:                      Character Classes and Bracket 
Expressions.
                                                              (line  896)
 * directory search:                      File and Directory Selection.
-                                                             (line  441)
+                                                             (line  439)
 * dot:                                   Fundamental Structure.
-                                                             (line  807)
+                                                             (line  806)
 * encoding error:                        Environment Variables.
-                                                             (line  702)
+                                                             (line  690)
 * environment variables:                 Environment Variables.
-                                                             (line  578)
+                                                             (line  579)
 * exclude directories:                   File and Directory Selection.
-                                                             (line  466)
+                                                             (line  464)
 * exclude files:                         File and Directory Selection.
-                                                             (line  452)
+                                                             (line  450)
 * exclude files <1>:                     File and Directory Selection.
-                                                             (line  462)
-* exit status:                           Exit Status.        (line  737)
-* FAQ about grep usage:                  Usage.              (line 1132)
+                                                             (line  460)
+* exit status:                           Exit Status.        (line  736)
+* FAQ about grep usage:                  Usage.              (line 1151)
 * files which don’t match:               General Output Control.
                                                              (line  202)
 * fn GREP_COLORS capability:             Environment Variables.
-                                                             (line  658)
+                                                             (line  646)
 * fn GREP_COLORS capability <1>:         Environment Variables.
-                                                             (line  673)
+                                                             (line  661)
 * graph character class:                 Character Classes and Bracket 
Expressions.
                                                              (line  899)
 * graphic characters:                    Character Classes and Bracket 
Expressions.
                                                              (line  899)
-* grep programs:                         grep Programs.      (line  746)
+* grep programs:                         grep Programs.      (line  745)
 * GREP_COLOR environment variable:       Environment Variables.
-                                                             (line  592)
+                                                             (line  580)
 * GREP_COLORS environment variable:      Environment Variables.
-                                                             (line  603)
-* GREP_OPTIONS environment variable:     Environment Variables.
-                                                             (line  579)
+                                                             (line  591)
 * group separator:                       Context Line Control.
-                                                             (line  353)
+                                                             (line  351)
 * group separator <1>:                   Context Line Control.
-                                                             (line  357)
+                                                             (line  355)
 * hexadecimal digits:                    Character Classes and Bracket 
Expressions.
                                                              (line  923)
 * highlight markers:                     Environment Variables.
-                                                             (line  592)
+                                                             (line  580)
 * highlight markers <1>:                 Environment Variables.
-                                                             (line  603)
+                                                             (line  591)
 * highlight, color, colour:              General Output Control.
                                                              (line  187)
-* holes in files:                        Performance.        (line 1340)
+* holes in files:                        Performance.        (line 1356)
 * include files:                         File and Directory Selection.
-                                                             (line  476)
-* interval specifications:               Basic vs Extended.  (line 1032)
+                                                             (line  474)
+* interval expressions:                  Fundamental Structure.
+                                                             (line  809)
+* interval expressions <1>:              Basic vs Extended.  (line 1052)
 * invert matching:                       Matching Control.   (line  149)
 * LANG environment variable:             Environment Variables.
-                                                             (line  543)
+                                                             (line  544)
 * LANG environment variable <1>:         Environment Variables.
-                                                             (line  695)
+                                                             (line  683)
 * LANG environment variable <2>:         Environment Variables.
-                                                             (line  702)
+                                                             (line  690)
 * LANG environment variable <3>:         Environment Variables.
-                                                             (line  711)
+                                                             (line  699)
 * LANGUAGE environment variable:         Environment Variables.
-                                                             (line  543)
+                                                             (line  544)
 * LANGUAGE environment variable <1>:     Environment Variables.
-                                                             (line  711)
+                                                             (line  699)
 * language of messages:                  Environment Variables.
-                                                             (line  711)
+                                                             (line  699)
 * LC_ALL environment variable:           Environment Variables.
-                                                             (line  543)
+                                                             (line  544)
 * LC_ALL environment variable <1>:       Environment Variables.
-                                                             (line  695)
+                                                             (line  683)
 * LC_ALL environment variable <2>:       Environment Variables.
-                                                             (line  702)
+                                                             (line  690)
 * LC_ALL environment variable <3>:       Environment Variables.
-                                                             (line  711)
+                                                             (line  699)
 * LC_COLLATE environment variable:       Environment Variables.
-                                                             (line  695)
+                                                             (line  683)
 * LC_CTYPE environment variable:         Environment Variables.
-                                                             (line  702)
+                                                             (line  690)
 * LC_MESSAGES environment variable:      Environment Variables.
-                                                             (line  543)
+                                                             (line  544)
 * LC_MESSAGES environment variable <1>:  Environment Variables.
-                                                             (line  711)
-* line buffering:                        Other Options.      (line  502)
+                                                             (line  699)
+* line buffering:                        Other Options.      (line  503)
 * line numbering:                        Output Line Prefix Control.
-                                                             (line  306)
+                                                             (line  304)
 * ln GREP_COLORS capability:             Environment Variables.
-                                                             (line  663)
-* locales:                               Performance.        (line 1318)
+                                                             (line  651)
+* locales:                               Performance.        (line 1334)
 * lower character class:                 Character Classes and Bracket 
Expressions.
                                                              (line  902)
 * lower-case letters:                    Character Classes and Bracket 
Expressions.
@@ -2254,53 +2268,55 @@
 * match expression zero or more times:   Fundamental Structure.
                                                              (line  817)
 * match the whole line:                  Matching Control.   (line  171)
-* matching basic regular expressions:    grep Programs.      (line  755)
-* matching extended regular expressions: grep Programs.      (line  760)
-* matching fixed strings:                grep Programs.      (line  765)
+* matching basic regular expressions:    grep Programs.      (line  754)
+* matching extended regular expressions: grep Programs.      (line  759)
+* matching fixed strings:                grep Programs.      (line  764)
 * matching Perl-compatible regular expressions: grep Programs.
-                                                             (line  770)
+                                                             (line  769)
 * matching whole words:                  Matching Control.   (line  154)
 * max-count:                             General Output Control.
-                                                             (line  215)
+                                                             (line  213)
 * mc GREP_COLORS capability:             Environment Variables.
-                                                             (line  650)
+                                                             (line  638)
 * message language:                      Environment Variables.
-                                                             (line  711)
+                                                             (line  699)
 * ms GREP_COLORS capability:             Environment Variables.
-                                                             (line  642)
-* MS-Windows binary I/O:                 Other Options.      (line  511)
+                                                             (line  630)
+* MS-Windows binary I/O:                 Other Options.      (line  512)
 * mt GREP_COLORS capability:             Environment Variables.
-                                                             (line  634)
+                                                             (line  622)
 * names of matching files:               General Output Control.
-                                                             (line  208)
+                                                             (line  207)
 * national language support:             Environment Variables.
-                                                             (line  695)
+                                                             (line  683)
 * national language support <1>:         Environment Variables.
-                                                             (line  711)
+                                                             (line  699)
 * ne GREP_COLORS capability:             Environment Variables.
-                                                             (line  680)
+                                                             (line  668)
 * NLS:                                   Environment Variables.
-                                                             (line  695)
+                                                             (line  683)
 * no filename prefix:                    Output Line Prefix Control.
-                                                             (line  293)
-* non-ASCII matching:                    Matching Non-ASCII. (line 1072)
-* non-printable matching:                Matching Non-ASCII. (line 1072)
+                                                             (line  291)
+* non-ASCII matching:                    Matching Non-ASCII. (line 1092)
+* non-printable matching:                Matching Non-ASCII. (line 1092)
 * null character:                        Environment Variables.
-                                                             (line  702)
+                                                             (line  690)
 * numeric characters:                    Character Classes and Bracket 
Expressions.
                                                              (line  896)
 * only matching:                         General Output Control.
-                                                             (line  245)
-* option delimiter:                      Other Options.      (line  496)
+                                                             (line  243)
+* option delimiter:                      Other Options.      (line  497)
+* ordinary characters:                   Fundamental Structure.
+                                                             (line  801)
 * patterns from file:                    Matching Control.   (line  115)
 * patterns option:                       Matching Control.   (line  106)
-* performance:                           Performance.        (line 1304)
+* performance:                           Performance.        (line 1320)
 * period:                                Fundamental Structure.
-                                                             (line  807)
+                                                             (line  806)
 * plus sign:                             Fundamental Structure.
                                                              (line  820)
 * POSIXLY_CORRECT environment variable:  Environment Variables.
-                                                             (line  716)
+                                                             (line  704)
 * print character class:                 Character Classes and Bracket 
Expressions.
                                                              (line  906)
 * print non-matching lines:              Matching Control.   (line  149)
@@ -2313,71 +2329,73 @@
 * question mark:                         Fundamental Structure.
                                                              (line  814)
 * quiet, silent:                         General Output Control.
-                                                             (line  253)
+                                                             (line  251)
 * range expression:                      Character Classes and Bracket 
Expressions.
                                                              (line  861)
 * recursive search:                      File and Directory Selection.
-                                                             (line  481)
+                                                             (line  482)
 * recursive search <1>:                  File and Directory Selection.
-                                                             (line  489)
+                                                             (line  490)
 * regular expressions:                   Regular Expressions.
-                                                             (line  785)
-* return status:                         Exit Status.        (line  737)
+                                                             (line  784)
+* return status:                         Exit Status.        (line  736)
 * rv GREP_COLORS capability:             Environment Variables.
-                                                             (line  628)
+                                                             (line  616)
 * searching directory trees:             File and Directory Selection.
-                                                             (line  452)
+                                                             (line  450)
 * searching directory trees <1>:         File and Directory Selection.
-                                                             (line  462)
+                                                             (line  460)
 * searching directory trees <2>:         File and Directory Selection.
-                                                             (line  476)
+                                                             (line  474)
 * searching directory trees <3>:         File and Directory Selection.
-                                                             (line  481)
+                                                             (line  482)
 * searching directory trees <4>:         File and Directory Selection.
-                                                             (line  489)
+                                                             (line  490)
 * searching for patterns:                Introduction.       (line   51)
 * sl GREP_COLORS capability:             Environment Variables.
-                                                             (line  611)
+                                                             (line  599)
 * space character class:                 Character Classes and Bracket 
Expressions.
                                                              (line  914)
 * space characters:                      Character Classes and Bracket 
Expressions.
                                                              (line  914)
+* special characters:                    Fundamental Structure.
+                                                             (line  801)
 * subexpression:                         Back-references and Subexpressions.
-                                                             (line 1014)
+                                                             (line 1015)
 * suppress binary data:                  File and Directory Selection.
-                                                             (line  387)
+                                                             (line  385)
 * suppress error messages:               General Output Control.
-                                                             (line  260)
+                                                             (line  258)
 * symbolic links:                        File and Directory Selection.
-                                                             (line  441)
+                                                             (line  439)
 * symbolic links <1>:                    File and Directory Selection.
-                                                             (line  481)
+                                                             (line  482)
 * symbolic links <2>:                    File and Directory Selection.
-                                                             (line  489)
+                                                             (line  490)
 * tab-aligned content lines:             Output Line Prefix Control.
-                                                             (line  311)
+                                                             (line  309)
 * translation of message language:       Environment Variables.
-                                                             (line  711)
+                                                             (line  699)
 * upper character class:                 Character Classes and Bracket 
Expressions.
                                                              (line  919)
 * upper-case letters:                    Character Classes and Bracket 
Expressions.
                                                              (line  919)
 * usage summary, printing:               Generic Program Information.
                                                              (line   93)
-* usage, examples:                       Usage.              (line 1105)
-* using grep, Q&A:                       Usage.              (line 1132)
-* variants of grep:                      grep Programs.      (line  746)
+* usage, examples:                       Usage.              (line 1125)
+* using grep, Q&A:                       Usage.              (line 1151)
+* variants of grep:                      grep Programs.      (line  745)
 * version, printing:                     Generic Program Information.
                                                              (line   98)
 * whitespace characters:                 Character Classes and Bracket 
Expressions.
                                                              (line  914)
 * with filename prefix:                  Output Line Prefix Control.
-                                                             (line  288)
+                                                             (line  286)
 * xdigit character class:                Character Classes and Bracket 
Expressions.
                                                              (line  923)
 * xdigit class:                          Character Classes and Bracket 
Expressions.
                                                              (line  923)
 * zero-terminated file names:            Output Line Prefix Control.
-                                                             (line  320)
-* zero-terminated lines:                 Other Options.      (line  532)
+                                                             (line  318)
+* zero-terminated lines:                 Other Options.      (line  533)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]