[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changes to manual/html_node/Other-Options.html
From: |
Karl Berry |
Subject: |
Changes to manual/html_node/Other-Options.html |
Date: |
Sun, 24 May 2009 18:43:10 +0000 |
CVSROOT: /web/grep
Module name: grep
Changes by: Karl Berry <karl> 09/05/24 18:43:01
Index: manual/html_node/Other-Options.html
===================================================================
RCS file: manual/html_node/Other-Options.html
diff -N manual/html_node/Other-Options.html
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ manual/html_node/Other-Options.html 24 May 2009 18:42:59 -0000 1.1
@@ -0,0 +1,82 @@
+<html lang="en">
+<head>
+<title>Other Options - GNU Grep 2.5.4</title>
+<meta http-equiv="Content-Type" content="text/html">
+<meta name="description" content="GNU Grep 2.5.4">
+<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">
+<!--
+This manual is for `grep', a pattern matching engine.
+
+Copyright (C) 1999, 2000, 2001, 2002, 2005, 2008, 2009 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>
+</head>
+<body>
+<div class="node">
+<a name="Other-Options"></a>
+<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>
+</div>
+
+<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-115"></a><a
name="index-line-buffering-116"></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-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, ‘<samp><span
class="samp">--mmap</span></samp>’ yields better performance.
+However, ‘<samp><span class="samp">--mmap</span></samp>’ 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>‘<samp><span
class="samp">-U</span></samp>’<dt>‘<samp><span
class="samp">--binary</span></samp>’<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.
+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.
+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,
+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.
+
+ <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-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
+<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,
+this option can be used with commands like
+‘<samp><span class="samp">sort -z</span></samp>’ to process
arbitrary file names.
+
+</dl>
+
+ </body></html>
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Changes to manual/html_node/Other-Options.html,
Karl Berry <=