CVSROOT: /webcvs/grep Module name: grep Changes by: Jim Meyering <meyering> 16/02/05 00:44:53
Index: html_node/Other-Options.html =================================================================== RCS file: /webcvs/grep/grep/manual/html_node/Other-Options.html,v retrieving revision 1.21 retrieving revision 1.22 diff -u -b -r1.21 -r1.22 --- html_node/Other-Options.html 2 Nov 2015 02:54:35 -0000 1.21 +++ html_node/Other-Options.html 5 Feb 2016 00:44:52 -0000 1.22 @@ -1,76 +1,120 @@ -<html lang="en"> +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html> +<!-- This manual is for grep, a pattern matching engine. + +Copyright (C) 1999-2002, 2005, 2008-2016 Free Software Foundation, +Inc. + +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.3 or +any later version published by the Free Software Foundation; with no +Invariant Sections, with no Front-Cover Texts, and with no Back-Cover +Texts. A copy of the license is included in the section entitled +"GNU Free Documentation License". --> +<!-- Created by GNU Texinfo 6.0, http://www.gnu.org/software/texinfo/ --> <head> -<title>Other Options - GNU Grep 2.22</title> +<title>GNU Grep 2.23: Other Options</title> + +<meta name="description" content="GNU Grep 2.23: Other Options"> +<meta name="keywords" content="GNU Grep 2.23: Other Options"> +<meta name="resource-type" content="document"> +<meta name="distribution" content="global"> +<meta name="Generator" content="makeinfo"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> -<meta name="description" content="GNU Grep 2.22"> -<meta name="generator" content="makeinfo 4.13"> -<link title="Top" rel="start" href="index.html#Top"> -<link rel="up" href="Command_002dline-Options.html#Command_002dline-Options" title="Command-line Options"> -<link rel="prev" href="File-and-Directory-Selection.html#File-and-Directory-Selection" title="File and Directory Selection"> -<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> +<link href="index.html#Top" rel="start" title="Top"> +<link href="Index.html#Index" rel="index" title="Index"> +<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents"> +<link href="Command_002dline-Options.html#Command_002dline-Options" rel="up" title="Command-line Options"> +<link href="Environment-Variables.html#Environment-Variables" rel="next" title="Environment Variables"> +<link href="File-and-Directory-Selection.html#File-and-Directory-Selection" rel="prev" title="File and Directory Selection"> +<style type="text/css"> <!-- -This manual is for `grep', a pattern matching engine. +a.summary-letter {text-decoration: none} +blockquote.indentedblock {margin-right: 0em} +blockquote.smallindentedblock {margin-right: 0em; font-size: smaller} +blockquote.smallquotation {font-size: smaller} +div.display {margin-left: 3.2em} +div.example {margin-left: 3.2em} +div.lisp {margin-left: 3.2em} +div.smalldisplay {margin-left: 3.2em} +div.smallexample {margin-left: 3.2em} +div.smalllisp {margin-left: 3.2em} +kbd {font-style: oblique} +pre.display {font-family: inherit} +pre.format {font-family: inherit} +pre.menu-comment {font-family: serif} +pre.menu-preformatted {font-family: serif} +pre.smalldisplay {font-family: inherit; font-size: smaller} +pre.smallexample {font-size: smaller} +pre.smallformat {font-family: inherit; font-size: smaller} +pre.smalllisp {font-size: smaller} +span.nocodebreak {white-space: nowrap} +span.nolinebreak {white-space: nowrap} +span.roman {font-family: serif; font-weight: normal} +span.sansserif {font-family: sans-serif; font-weight: normal} +ul.no-bullet {list-style: none} +--> +</style> +<link rel="stylesheet" type="text/css" href="/software/gnulib/manual.css"> -Copyright (C) 1999-2002, 2005, 2008-2015 Free Software Foundation, -Inc. - Permission is granted to copy, distribute and/or modify this - document under the terms of the GNU Free Documentation License, - Version 1.3 or any later version published by the Free Software - Foundation; with no Invariant Sections, with no Front-Cover Texts, - and with no Back-Cover Texts. A copy of the license is included - in the section entitled ``GNU Free Documentation License''. - --> -<meta http-equiv="Content-Style-Type" content="text/css"> -<style type="text/css"><!-- - pre.display { font-family:inherit } - pre.format { font-family:inherit } - pre.smalldisplay { font-family:inherit; font-size:smaller } - pre.smallformat { font-family:inherit; font-size:smaller } - pre.smallexample { font-size:smaller } - pre.smalllisp { font-size:smaller } - span.sc { font-variant:small-caps } - span.roman { font-family:serif; font-weight:normal; } - span.sansserif { font-family:sans-serif; font-weight:normal; } ---></style> -<link rel="stylesheet" type="text/css" href="/software/gnulib/manual.css"> </head> -<body> -<div class="node"> + +<body lang="en"> <a name="Other-Options"></a> +<div class="header"> <p> -Previous: <a rel="previous" accesskey="p" href="File-and-Directory-Selection.html#File-and-Directory-Selection">File and Directory Selection</a>, -Up: <a rel="up" accesskey="u" href="Command_002dline-Options.html#Command_002dline-Options">Command-line Options</a> -<hr> +Previous: <a href="File-and-Directory-Selection.html#File-and-Directory-Selection" accesskey="p" rel="prev">File and Directory Selection</a>, Up: <a href="Command_002dline-Options.html#Command_002dline-Options" accesskey="u" rel="up">Command-line Options</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index.html#Index" title="Index" rel="index">Index</a>]</p> </div> - +<hr> +<a name="Other-Options-1"></a> <h4 class="subsection">2.1.7 Other Options</h4> - <dl> -<dt><samp><span class="option">--line-buffered</span></samp><dd><a name="index-g_t_002d_002dline_002dbuffered-126"></a><a name="index-line-buffering-127"></a>Use line buffering on output. +<dl compact="compact"> +<dt><samp>--line-buffered</samp></dt> +<dd><a name="index-_002d_002dline_002dbuffered"></a> +<a name="index-line-buffering"></a> +<p>Use line buffering on output. This can cause a performance penalty. - - <br><dt><samp><span class="option">-U</span></samp><dt><samp><span class="option">--binary</span></samp><dd><a name="index-g_t_002dU-128"></a><a name="index-g_t_002d_002dbinary-129"></a><a name="index-MS_002dDOS_002fMS_002dWindows-binary-files-130"></a><a name="index-binary-files_002c-MS_002dDOS_002fMS_002dWindows-131"></a>Treat the file(s) as binary. +</p> +</dd> +<dt><samp>-U</samp></dt> +<dt><samp>--binary</samp></dt> +<dd><a name="index-_002dU"></a> +<a name="index-_002d_002dbinary"></a> +<a name="index-MS_002dDOS_002fMS_002dWindows-binary-files"></a> +<a name="index-binary-files_002c-MS_002dDOS_002fMS_002dWindows"></a> +<p>Treat the file(s) as binary. By default, under MS-DOS and MS-Windows, -<samp><span class="command">grep</span></samp> guesses whether a file is text or binary -as described for the <samp><span class="option">--binary-files</span></samp> option. -If <samp><span class="command">grep</span></samp> decides the file is a text file, +<code>grep</code> guesses whether a file is text or binary +as described for the <samp>--binary-files</samp> option. +If <code>grep</code> decides the file is a text file, it strips carriage returns from the original file contents (to make regular expressions with <code>^</code> and <code>$</code> work correctly). -Specifying <samp><span class="option">-U</span></samp> overrules this guesswork, +Specifying <samp>-U</samp> overrules this guesswork, causing all files to be read and passed to the matching mechanism verbatim; if the file is a text file with <code>CR/LF</code> pairs at the end of each line, this will cause some regular expressions to fail. This option has no effect on platforms other than MS-DOS and MS-Windows. - - <br><dt><samp><span class="option">-z</span></samp><dt><samp><span class="option">--null-data</span></samp><dd><a name="index-g_t_002dz-132"></a><a name="index-g_t_002d_002dnull_002ddata-133"></a><a name="index-zero_002dterminated-lines-134"></a>Treat the input as a set of lines, each terminated by a zero byte (the +</p> +</dd> +<dt><samp>-z</samp></dt> +<dt><samp>--null-data</samp></dt> +<dd><a name="index-_002dz"></a> +<a name="index-_002d_002dnull_002ddata"></a> +<a name="index-zero_002dterminated-lines"></a> +<p>Treat the input as a set of lines, each terminated by a zero byte (the ASCII NUL character) instead of a newline. -Like the <samp><span class="option">-Z</span></samp> or <samp><span class="option">--null</span></samp> option, +Like the <samp>-Z</samp> or <samp>--null</samp> option, this option can be used with commands like -‘<samp><span class="samp">sort -z</span></samp>’ to process arbitrary file names. - +‘<samp>sort -z</samp>’ to process arbitrary file names. +</p> +</dd> </dl> - </body></html> + + +</body> +</html>
