CVSROOT: /webcvs/grep Module name: grep Changes by: Jim Meyering <meyering> 23/03/22 22:55:22
Index: html_node/Other-Options.html =================================================================== RCS file: /webcvs/grep/grep/manual/html_node/Other-Options.html,v retrieving revision 1.33 retrieving revision 1.34 diff -u -b -r1.33 -r1.34 --- html_node/Other-Options.html 3 Sep 2022 19:33:14 -0000 1.33 +++ html_node/Other-Options.html 23 Mar 2023 02:55:21 -0000 1.34 @@ -1,11 +1,11 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!DOCTYPE html> <html> -<!-- Created by GNU Texinfo 6.8, https://www.gnu.org/software/texinfo/ --> +<!-- Created by GNU Texinfo 7.0dev, https://www.gnu.org/software/texinfo/ --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <!-- This manual is for grep, a pattern matching engine. -Copyright (C) 1999-2002, 2005, 2008-2022 Free Software Foundation, +Copyright © 1999-2002, 2005, 2008-2023 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document @@ -14,10 +14,10 @@ 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". --> -<title>Other Options (GNU Grep 3.8)</title> +<title>Other Options (GNU Grep 3.10)</title> -<meta name="description" content="Other Options (GNU Grep 3.8)"> -<meta name="keywords" content="Other Options (GNU Grep 3.8)"> +<meta name="description" content="Other Options (GNU Grep 3.10)"> +<meta name="keywords" content="Other Options (GNU Grep 3.10)"> <meta name="resource-type" content="document"> <meta name="distribution" content="global"> <meta name="Generator" content="makeinfo"> @@ -30,21 +30,8 @@ <link href="File-and-Directory-Selection.html" rel="prev" title="File and Directory Selection"> <style type="text/css"> <!-- -a.copiable-anchor {visibility: hidden; text-decoration: none; line-height: 0em} -a.summary-letter {text-decoration: none} -blockquote.indentedblock {margin-right: 0em} -div.display {margin-left: 3.2em} -div.example {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} -span.nolinebreak {white-space: nowrap} -span.roman {font-family: initial; font-weight: normal} -span.sansserif {font-family: sans-serif; font-weight: normal} -span:hover a.copiable-anchor {visibility: visible} -ul.no-bullet {list-style: none} +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em} +span:hover a.copiable-link {visibility: visible} --> </style> <link rel="stylesheet" type="text/css" href="https://www.gnu.org/software/gnulib/manual.css"> @@ -53,25 +40,27 @@ </head> <body lang="en"> -<div class="subsection" id="Other-Options"> -<div class="header"> +<div class="subsection-level-extent" id="Other-Options"> +<div class="nav-panel"> <p> Previous: <a href="File-and-Directory-Selection.html" accesskey="p" rel="prev">File and Directory Selection</a>, Up: <a href="Command_002dline-Options.html" 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" title="Index" rel="index">Index</a>]</p> </div> <hr> -<span id="Other-Options-1"></span><h4 class="subsection">2.1.7 Other Options</h4> +<h4 class="subsection" id="Other-Options-1"><span>2.1.7 Other Options<a class="copiable-link" href="#Other-Options-1"> ¶</a></span></h4> -<dl compact="compact"> -<dt id='index-_002d_002d'><span><samp>--</samp><a href='#index-_002d_002d' class='copiable-anchor'> ¶</a></span></dt> -<dd><span id="index-option-delimiter"></span> +<dl class="table"> +<dt><samp class="option">--</samp></dt> +<dd><a class="index-entry-id" id="index-_002d_002d"></a> +<a class="index-entry-id" id="index-option-delimiter"></a> <p>Delimit the option list. Later arguments, if any, are treated as -operands even if they begin with ‘<samp>-</samp>’. For example, ‘<samp>grep PAT -- --file1 file2</samp>’ searches for the pattern PAT in the files named <samp>-file1</samp> -and <samp>file2</samp>. +operands even if they begin with ‘<samp class="samp">-</samp>’. For example, ‘<samp class="samp">grep PAT -- +-file1 file2</samp>’ searches for the pattern PAT in the files named <samp class="file">-file1</samp> +and <samp class="file">file2</samp>. </p> </dd> -<dt id='index-_002d_002dline_002dbuffered'><span><samp>--line-buffered</samp><a href='#index-_002d_002dline_002dbuffered' class='copiable-anchor'> ¶</a></span></dt> -<dd><span id="index-line-buffering"></span> +<dt><samp class="option">--line-buffered</samp></dt> +<dd><a class="index-entry-id" id="index-_002d_002dline_002dbuffered"></a> +<a class="index-entry-id" id="index-line-buffering"></a> <p>Use line buffering for standard output, regardless of output device. By default, standard output is line buffered for interactive devices, and is fully buffered otherwise. With full buffering, the output @@ -79,48 +68,50 @@ flushed after every output line. The buffer size is system dependent. </p> </dd> -<dt id='index-_002dU'><span><samp>-U</samp><a href='#index-_002dU' class='copiable-anchor'> ¶</a></span></dt> -<dt><span><samp>--binary</samp></span></dt> -<dd><span id="index-_002d_002dbinary"></span> -<span id="index-MS_002dWindows-binary-I_002fO"></span> -<span id="index-binary-I_002fO"></span> +<dt><samp class="option">-U</samp></dt> +<dt><samp class="option">--binary</samp></dt> +<dd><a class="index-entry-id" id="index-_002dU"></a> +<a class="index-entry-id" id="index-_002d_002dbinary"></a> +<a class="index-entry-id" id="index-MS_002dWindows-binary-I_002fO"></a> +<a class="index-entry-id" id="index-binary-I_002fO"></a> <p>On platforms that distinguish between text and binary I/O, use the latter when reading and writing files other than the user’s terminal, so that all input bytes are read and written -as-is. This overrides the default behavior where <code>grep</code> +as-is. This overrides the default behavior where <code class="command">grep</code> follows the operating system’s advice whether to use text or binary -I/O. On MS-Windows when <code>grep</code> uses text I/O it reads a +I/O. On MS-Windows when <code class="command">grep</code> uses text I/O it reads a carriage return–newline pair as a newline and a Control-Z as end-of-file, and it writes a newline as a carriage return–newline pair. </p> -<p>When using text I/O <samp>--byte-offset</samp> (<samp>-b</samp>) counts and -<samp>--binary-files</samp> heuristics apply to input data after text-I/O -processing. Also, the <samp>--binary-files</samp> heuristics need not agree -with the <samp>--binary</samp> option; that is, they may treat the data as -text even if <samp>--binary</samp> is given, or vice versa. -See <a href="File-and-Directory-Selection.html">File and Directory Selection</a>. +<p>When using text I/O <samp class="option">--byte-offset</samp> (<samp class="option">-b</samp>) counts and +<samp class="option">--binary-files</samp> heuristics apply to input data after text-I/O +processing. Also, the <samp class="option">--binary-files</samp> heuristics need not agree +with the <samp class="option">--binary</samp> option; that is, they may treat the data as +text even if <samp class="option">--binary</samp> is given, or vice versa. +See <a class="xref" href="File-and-Directory-Selection.html">File and Directory Selection</a>. </p> <p>This option has no effect on GNU and other POSIX-compatible platforms, which do not distinguish text from binary I/O. </p> </dd> -<dt id='index-_002dz'><span><samp>-z</samp><a href='#index-_002dz' class='copiable-anchor'> ¶</a></span></dt> -<dt><span><samp>--null-data</samp></span></dt> -<dd><span id="index-_002d_002dnull_002ddata"></span> -<span id="index-zero_002dterminated-lines"></span> +<dt><samp class="option">-z</samp></dt> +<dt><samp class="option">--null-data</samp></dt> +<dd><a class="index-entry-id" id="index-_002dz"></a> +<a class="index-entry-id" id="index-_002d_002dnull_002ddata"></a> +<a class="index-entry-id" id="index-zero_002dterminated-lines"></a> <p>Treat input and output data as sequences of lines, each terminated by a zero byte (the ASCII NUL character) instead of a newline. -Like the <samp>-Z</samp> or <samp>--null</samp> option, +Like the <samp class="option">-Z</samp> or <samp class="option">--null</samp> option, this option can be used with commands like -‘<samp>sort -z</samp>’ to process arbitrary file names. +‘<samp class="samp">sort -z</samp>’ to process arbitrary file names. </p> </dd> </dl> </div> <hr> -<div class="header"> +<div class="nav-panel"> <p> Previous: <a href="File-and-Directory-Selection.html">File and Directory Selection</a>, Up: <a href="Command_002dline-Options.html">Command-line Options</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index.html" title="Index" rel="index">Index</a>]</p> </div>
