[Top][All Lists]
[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: |
Fri, 02 Mar 2012 09:28:47 +0000 |
CVSROOT: /webcvs/grep
Module name: grep
Changes by: Jim Meyering <meyering> 12/03/02 09:28:32
Index: html_node/Other-Options.html
===================================================================
RCS file: /webcvs/grep/grep/manual/html_node/Other-Options.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- html_node/Other-Options.html 25 Jun 2011 09:28:45 -0000 1.9
+++ html_node/Other-Options.html 2 Mar 2012 09:28:30 -0000 1.10
@@ -1,8 +1,8 @@
<html lang="en">
<head>
-<title>Other Options - GNU Grep 2.9</title>
+<title>Other Options - GNU Grep 2.11</title>
<meta http-equiv="Content-Type" content="text/html">
-<meta name="description" content="GNU Grep 2.9">
+<meta name="description" content="GNU Grep 2.11">
<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,7 +11,8 @@
<!--
This manual is for `grep', a pattern matching engine.
-Copyright (C) 1999-2002, 2005, 2008-2011 Free Software Foundation, Inc.
+Copyright (C) 1999-2002, 2005, 2008-2012 Free Software Foundation,
+Inc.
Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License,
@@ -45,31 +46,32 @@
<h4 class="subsection">2.1.7 Other Options</h4>
<dl>
-<dt>‘<samp><span class="samp">--line-buffered</span></samp>’<dd><a
name="index-g_t_002d_002dline_002dbuffered-119"></a><a
name="index-line-buffering-120"></a>Use line buffering on output.
+<dt><samp><span class="option">--line-buffered</span></samp><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>‘<samp><span class="samp">--mmap</span></samp>’<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
+ <br><dt><samp><span class="option">--mmap</span></samp><dd><a
name="index-g_t_002d_002dmmap-121"></a><a
name="index-memory-mapped-input-122"></a>This option is deprecated and now
elicits a warning, but is otherwise a no-op.
+It used to make <samp><span class="command">grep</span></samp> read
input with the <code>mmap</code> system call, instead of the default
<code>read</code>
system call. On modern systems, <code>mmap</code> would rarely if ever yield
better performance.
- <br><dt>‘<samp><span
class="samp">-U</span></samp>’<dt>‘<samp><span
class="samp">--binary</span></samp>’<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,
+ <br><dt><samp><span class="option">-U</span></samp><dt><samp><span
class="option">--binary</span></samp><dd><a name="index-g_t_002dU-123"></a><a
name="index-g_t_002d_002dbinary-124"></a><a
name="index-MS_002dDOS_002fMS_002dWindows-binary-files-125"></a><a
name="index-binary-files_002c-MS_002dDOS_002fMS_002dWindows-126"></a>Treat the
file(s) as binary.
+By default, under MS-DOS and MS-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.
If <samp><span class="command">grep</span></samp> decides the file is a text
file,
it strips the <code>CR</code> characters from the original file contents
(to make regular expressions with <code>^</code> and <code>$</code> work
correctly).
-Specifying ‘<samp><span class="samp">-U</span></samp>’ overrules
this guesswork,
+Specifying <samp><span class="option">-U</span></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 <span class="sc">ms-dos</span> and <span
class="sc">ms</span>-Windows.
+on platforms other than MS-DOS and MS-Windows.
- <br><dt>‘<samp><span
class="samp">-z</span></samp>’<dt>‘<samp><span
class="samp">--null-data</span></samp>’<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 ‘<samp><span class="samp">-Z</span></samp>’ or
‘<samp><span class="samp">--null</span></samp>’ option,
+ <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-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
+ASCII <code>NUL</code> character) instead of a newline.
+Like the <samp><span class="option">-Z</span></samp> or <samp><span
class="option">--null</span></samp> option,
this option can be used with commands like
‘<samp><span class="samp">sort -z</span></samp>’ to process
arbitrary file names.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Changes to grep/manual/html_node/Other-Options.html,v,
Jim Meyering <=