grep-commit
[Top][All Lists]
Advanced

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

Changes to grep/manual/html_node/File-and-Directory-Selection.html,v


From: Jim Meyering
Subject: Changes to grep/manual/html_node/File-and-Directory-Selection.html,v
Date: Mon, 02 Nov 2015 02:54:54 +0000

CVSROOT:        /webcvs/grep
Module name:    grep
Changes by:     Jim Meyering <meyering> 15/11/02 02:54:37

Index: html_node/File-and-Directory-Selection.html
===================================================================
RCS file: /webcvs/grep/grep/manual/html_node/File-and-Directory-Selection.html,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- html_node/File-and-Directory-Selection.html 23 Nov 2014 22:23:31 -0000      
1.20
+++ html_node/File-and-Directory-Selection.html 2 Nov 2015 02:54:33 -0000       
1.21
@@ -1,8 +1,8 @@
 <html lang="en">
 <head>
-<title>File and Directory Selection - GNU Grep 2.21</title>
+<title>File and Directory Selection - GNU Grep 2.22</title>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-<meta name="description" content="GNU Grep 2.21">
+<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">
@@ -12,7 +12,7 @@
 <!--
 This manual is for `grep', a pattern matching engine.
 
-Copyright (C) 1999--2002, 2005, 2008--2014 Free Software Foundation,
+Copyright (C) 1999-2002, 2005, 2008-2015 Free Software Foundation,
 Inc.
 
      Permission is granted to copy, distribute and/or modify this
@@ -34,6 +34,7 @@
   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">
@@ -55,12 +56,18 @@
 or if its data read before a line is selected for output,
 indicate that the file contains binary data,
 assume that the file is of type <var>type</var>. 
-By default, <var>type</var> is &lsquo;<samp><span 
class="samp">binary</span></samp>&rsquo;,
+Non-text bytes indicate binary data; these are either data bytes
+improperly encoded for the current locale, or null bytes when the
+<samp><span class="option">-z</span></samp> (<samp><span 
class="option">--null-data</span></samp>) option is not given (see <a 
href="Other-Options.html#Other-Options">Other Options</a>).
+
+     <p>By default, <var>type</var> is &lsquo;<samp><span 
class="samp">binary</span></samp>&rsquo;,
 and <samp><span class="command">grep</span></samp> normally outputs either
 a one-line message saying that a binary file matches,
 or no message if there is no match. 
-When matching binary data, <samp><span class="command">grep</span></samp> may 
treat non-text
-bytes as line terminators.
+When processing binary data, <samp><span class="command">grep</span></samp> 
may treat non-text bytes
+as line terminators; for example, the pattern &lsquo;<samp><span 
class="samp">.</span></samp>&rsquo; (period) might
+not match a null byte, as the null byte might be treated as a line
+terminator even without the <samp><span class="option">-z</span></samp> 
(<samp><span class="option">--null-data</span></samp>) option.
 
      <p>If <var>type</var> is &lsquo;<samp><span 
class="samp">without-match</span></samp>&rsquo;,
 <samp><span class="command">grep</span></samp> assumes that a binary file does 
not match;
@@ -123,6 +130,7 @@
 read and process all files in that directory, recursively. 
 Follow symbolic links on the command line, but skip symlinks
 that are encountered recursively. 
+Note that if no file operand is given, grep searches the working directory. 
 This is the same as the &lsquo;<samp><span 
class="samp">--directories=recurse</span></samp>&rsquo; option.
 
      <br><dt><samp><span class="option">-R</span></samp><dt><samp><span 
class="option">--dereference-recursive</span></samp><dd><a 
name="index-g_t_002dR-121"></a><a 
name="index-g_t_002d_002ddereference_002drecursive-122"></a><a 
name="index-recursive-search-123"></a><a 
name="index-searching-directory-trees-124"></a><a 
name="index-symbolic-links-125"></a>For each directory operand, read and 
process all files in that



reply via email to

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