CVSROOT: /webcvs/grep Module name: grep Changes by: Jim Meyering <meyering> 16/12/07 13:11:25
Index: grep.html =================================================================== RCS file: /webcvs/grep/grep/manual/grep.html,v retrieving revision 1.25 retrieving revision 1.26 diff -u -b -r1.25 -r1.26 --- grep.html 3 Oct 2016 02:37:08 -0000 1.25 +++ grep.html 7 Dec 2016 13:11:21 -0000 1.26 @@ -13,10 +13,10 @@ "GNU Free Documentation License". --> <!-- Created by GNU Texinfo 6.3, http://www.gnu.org/software/texinfo/ --> <head> -<title>GNU Grep 2.26</title> +<title>GNU Grep 2.27</title> -<meta name="description" content="GNU Grep 2.26"> -<meta name="keywords" content="GNU Grep 2.26"> +<meta name="description" content="GNU Grep 2.27"> +<meta name="keywords" content="GNU Grep 2.27"> <meta name="resource-type" content="document"> <meta name="distribution" content="global"> <meta name="Generator" content="makeinfo"> @@ -58,7 +58,7 @@ </head> <body lang="en"> -<h1 class="settitle" align="center">GNU Grep 2.26</h1> +<h1 class="settitle" align="center">GNU Grep 2.27</h1> @@ -122,7 +122,7 @@ <p><code>grep</code> prints lines that contain a match for a pattern. </p> -<p>This manual is for version 2.26 of GNU Grep. +<p>This manual is for version 2.27 of GNU Grep. </p> <p>This manual is for <code>grep</code>, a pattern matching engine. </p> @@ -498,6 +498,8 @@ <a name="index-only-matching"></a> <p>Print only the matched (non-empty) parts of matching lines, with each such part on a separate output line. +Output lines use the same delimiters as input, and delimiters are null +bytes if <samp>-z</samp> (<samp>--null-data</samp>) is also used (see <a href="#Other-Options">Other Options</a>). </p> </dd> <dt><samp>-q</samp></dt> @@ -615,10 +617,8 @@ so that the alignment of tabs looks normal. This is useful with options that prefix their output to the actual content: <samp>-H</samp>, <samp>-n</samp>, and <samp>-b</samp>. -In order to improve the probability that lines -from a single file will all start at the same column, -this also causes the line number and byte offset (if present) -to be printed in a minimum-size field width. +This may also prepend spaces to output line numbers and byte offsets +so that lines from a single file all start at the same column. </p> </dd> <dt><samp>-u</samp></dt> @@ -1347,8 +1347,10 @@ <a name="index-_002d_002dperl_002dregexp"></a> <a name="index-matching-Perl_002dcompatible-regular-expressions"></a> <p>Interpret the pattern as a Perl-compatible regular expression (PCRE). -This is highly experimental and +This is highly experimental, particularly when combined with +the <samp>-z</samp> (<samp>--null-data</samp>) option, and ‘<samp>grep -P</samp>’ may warn of unimplemented features. +See <a href="#Other-Options">Other Options</a>. </p> </dd> </dl> @@ -2052,7 +2054,7 @@ match newlines in the way you might expect. </p> <p>With the GNU <code>grep</code> option <samp>-z</samp> (<samp>--null-data</samp>), each -input “line” is terminated by a null byte; see <a href="#Other-Options">Other Options</a>. Thus, +input and output “line” is null-terminated; see <a href="#Other-Options">Other Options</a>. Thus, you can match newlines in the input, but typically if there is a match the entire input is output, so this usage is often combined with output-suppressing options like <samp>-q</samp>, e.g.:
