grep-commit
[Top][All Lists]
Advanced

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

Changes to grep/manual/html_node/Other-Options.html,v


From: Jim Meyering
Subject: Changes to grep/manual/html_node/Other-Options.html,v
Date: Tue, 23 Mar 2010 12:04:31 +0000

CVSROOT:        /webcvs/grep
Module name:    grep
Changes by:     Jim Meyering <meyering> 10/03/23 12:04:22

Index: html_node/Other-Options.html
===================================================================
RCS file: /webcvs/grep/grep/manual/html_node/Other-Options.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- html_node/Other-Options.html        24 May 2009 18:42:59 -0000      1.1
+++ html_node/Other-Options.html        23 Mar 2010 12:04:20 -0000      1.2
@@ -1,8 +1,8 @@
 <html lang="en">
 <head>
-<title>Other Options - GNU Grep 2.5.4</title>
+<title>Other Options - GNU Grep 2.6</title>
 <meta http-equiv="Content-Type" content="text/html">
-<meta name="description" content="GNU Grep 2.5.4">
+<meta name="description" content="GNU Grep 2.6">
 <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">
@@ -11,8 +11,8 @@
 <!--
 This manual is for `grep', a pattern matching engine.
 
-Copyright (C) 1999, 2000, 2001, 2002, 2005, 2008, 2009 Free
-Software Foundation, Inc.
+Copyright (C) 1999-2002, 2005, 2008-2010 Free Software Foundation,
+Inc.
 
      Permission is granted to copy, distribute and/or modify this
      document under the terms of the GNU Free Documentation License,
@@ -46,17 +46,15 @@
 <h4 class="subsection">2.1.7 Other Options</h4>
 
      <dl>
-<dt>&lsquo;<samp><span class="samp">--line-buffered</span></samp>&rsquo;<dd><a 
name="index-g_t_002d_002dline_002dbuffered-115"></a><a 
name="index-line-buffering-116"></a>Use line buffering on output. 
+<dt>&lsquo;<samp><span class="samp">--line-buffered</span></samp>&rsquo;<dd><a 
name="index-g_t_002d_002dline_002dbuffered-119"></a><a 
name="index-line-buffering-120"></a>Use line buffering on output. 
 This can cause a performance penalty.
 
-     <br><dt>&lsquo;<samp><span class="samp">--mmap</span></samp>&rsquo;<dd><a 
name="index-g_t_002d_002dmmap-117"></a><a 
name="index-memory-mapped-input-118"></a>If possible, use the <code>mmap</code> 
system call to read input,
-instead of the default <code>read</code> system call. 
-In some situations, &lsquo;<samp><span 
class="samp">--mmap</span></samp>&rsquo; yields better performance. 
-However, &lsquo;<samp><span class="samp">--mmap</span></samp>&rsquo; can cause 
undefined behavior (including core dumps)
-if an input file shrinks while <samp><span class="command">grep</span></samp> 
is operating,
-or if an I/O error occurs.
+     <br><dt>&lsquo;<samp><span class="samp">--mmap</span></samp>&rsquo;<dd><a 
name="index-g_t_002d_002dmmap-121"></a><a 
name="index-memory-mapped-input-122"></a>This option is ignored for backwards 
compatibility.  It used to read
+input with the <code>mmap</code> system call, instead of the default 
<code>read</code>
+system call.  On modern systems, &lsquo;<samp><span 
class="samp">--mmap</span></samp>&rsquo; rarely if ever yields
+better performance.
 
-     <br><dt>&lsquo;<samp><span 
class="samp">-U</span></samp>&rsquo;<dt>&lsquo;<samp><span 
class="samp">--binary</span></samp>&rsquo;<dd><a 
name="index-g_t_002dU-119"></a><a name="index-g_t_002d_002dbinary-120"></a><a 
name="index-g_t_0040sc_007bms_002ddos_007d_002f_0040sc_007bms_007d_002dWindows-binary-files-121"></a><a
 
name="index-binary-files_002c-_0040sc_007bms_002ddos_007d_002f_0040sc_007bms_007d_002dWindows-122"></a>Treat
 the file(s) as binary. 
+     <br><dt>&lsquo;<samp><span 
class="samp">-U</span></samp>&rsquo;<dt>&lsquo;<samp><span 
class="samp">--binary</span></samp>&rsquo;<dd><a 
name="index-g_t_002dU-123"></a><a name="index-g_t_002d_002dbinary-124"></a><a 
name="index-g_t_0040sc_007bms_002ddos_007d_002f_0040sc_007bms_007d_002dWindows-binary-files-125"></a><a
 
name="index-binary-files_002c-_0040sc_007bms_002ddos_007d_002f_0040sc_007bms_007d_002dWindows-126"></a>Treat
 the file(s) as binary. 
 By default, under <span class="sc">ms-dos</span> and <span 
class="sc">ms</span>-Windows,
 <samp><span class="command">grep</span></samp> guesses the file type
 by looking at the contents of the first 32kB read from the file. 
@@ -70,7 +68,7 @@
 This option has no effect
 on platforms other than <span class="sc">ms-dos</span> and <span 
class="sc">ms</span>-Windows.
 
-     <br><dt>&lsquo;<samp><span 
class="samp">-z</span></samp>&rsquo;<dt>&lsquo;<samp><span 
class="samp">--null-data</span></samp>&rsquo;<dd><a 
name="index-g_t_002dz-123"></a><a 
name="index-g_t_002d_002dnull_002ddata-124"></a><a 
name="index-zero_002dterminated-lines-125"></a>Treat the input as a set of 
lines, each terminated by a zero byte (the
+     <br><dt>&lsquo;<samp><span 
class="samp">-z</span></samp>&rsquo;<dt>&lsquo;<samp><span 
class="samp">--null-data</span></samp>&rsquo;<dd><a 
name="index-g_t_002dz-127"></a><a 
name="index-g_t_002d_002dnull_002ddata-128"></a><a 
name="index-zero_002dterminated-lines-129"></a>Treat the input as a set of 
lines, each terminated by a zero byte (the
 <span class="sc">ascii</span> <code>NUL</code> character) instead of a 
newline. 
 Like the &lsquo;<samp><span class="samp">-Z</span></samp>&rsquo; or 
&lsquo;<samp><span class="samp">--null</span></samp>&rsquo; option,
 this option can be used with commands like




reply via email to

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