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: Sun, 23 Nov 2014 22:23:41 +0000

CVSROOT:        /webcvs/grep
Module name:    grep
Changes by:     Jim Meyering <meyering> 14/11/23 22:23:33

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.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- html_node/File-and-Directory-Selection.html 3 Jun 2014 14:47:03 -0000       
1.19
+++ html_node/File-and-Directory-Selection.html 23 Nov 2014 22:23:31 -0000      
1.20
@@ -1,8 +1,8 @@
 <html lang="en">
 <head>
-<title>File and Directory Selection - GNU Grep 2.20</title>
+<title>File and Directory Selection - GNU Grep 2.21</title>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-<meta name="description" content="GNU Grep 2.20">
+<meta name="description" content="GNU Grep 2.21">
 <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">
@@ -51,13 +51,16 @@
 <dt><samp><span class="option">-a</span></samp><dt><samp><span 
class="option">--text</span></samp><dd><a name="index-g_t_002da-92"></a><a 
name="index-g_t_002d_002dtext-93"></a><a 
name="index-suppress-binary-data-94"></a><a 
name="index-binary-files-95"></a>Process a binary file as if it were text;
 this is equivalent to the &lsquo;<samp><span 
class="samp">--binary-files=text</span></samp>&rsquo; option.
 
-     <br><dt><samp><span 
class="option">--binary-files=</span><var>type</var></samp><dd><a 
name="index-g_t_002d_002dbinary_002dfiles-96"></a><a 
name="index-binary-files-97"></a>If a file's allocation metadata or its first 
few bytes
+     <br><dt><samp><span 
class="option">--binary-files=</span><var>type</var></samp><dd><a 
name="index-g_t_002d_002dbinary_002dfiles-96"></a><a 
name="index-binary-files-97"></a>If a file's allocation metadata,
+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;,
 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.
 
      <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;
@@ -95,24 +98,26 @@
 following command-line symbolic links and skipping other symlinks;
 this is equivalent to the <samp><span class="option">-r</span></samp> option.
 
-     <br><dt><samp><span 
class="option">--exclude=</span><var>glob</var></samp><dd><a 
name="index-g_t_002d_002dexclude-105"></a><a 
name="index-exclude-files-106"></a><a 
name="index-searching-directory-trees-107"></a>Skip files whose base name 
matches <var>glob</var>
-(using wildcard matching). 
-A file-name glob can use
+     <br><dt><samp><span 
class="option">--exclude=</span><var>glob</var></samp><dd><a 
name="index-g_t_002d_002dexclude-105"></a><a 
name="index-exclude-files-106"></a><a 
name="index-searching-directory-trees-107"></a>Skip files whose name matches 
the pattern <var>glob</var>, using wildcard
+matching.  When searching recursively, skip any subfile whose base
+name matches <var>glob</var>; the base name is the part after the last
+&lsquo;<samp><span class="samp">/</span></samp>&rsquo;.  A pattern can use
 &lsquo;<samp><span class="samp">*</span></samp>&rsquo;, &lsquo;<samp><span 
class="samp">?</span></samp>&rsquo;, and &lsquo;<samp><span 
class="samp">[</span></samp>&rsquo;...&lsquo;<samp><span 
class="samp">]</span></samp>&rsquo; as wildcards,
 and <code>\</code> to quote a wildcard or backslash character literally.
 
-     <br><dt><samp><span 
class="option">--exclude-from=</span><var>file</var></samp><dd><a 
name="index-g_t_002d_002dexclude_002dfrom-108"></a><a 
name="index-exclude-files-109"></a><a 
name="index-searching-directory-trees-110"></a>Skip files whose base name 
matches any of the file-name globs
+     <br><dt><samp><span 
class="option">--exclude-from=</span><var>file</var></samp><dd><a 
name="index-g_t_002d_002dexclude_002dfrom-108"></a><a 
name="index-exclude-files-109"></a><a 
name="index-searching-directory-trees-110"></a>Skip files whose name matches 
any of the patterns
 read from <var>file</var> (using wildcard matching as described
 under <samp><span class="option">--exclude</span></samp>).
 
-     <br><dt><samp><span 
class="option">--exclude-dir=</span><var>dir</var></samp><dd><a 
name="index-g_t_002d_002dexclude_002ddir-111"></a><a 
name="index-exclude-directories-112"></a>Skip any directory whose name matches 
the pattern <var>dir</var>, ignoring
-any redundant trailing slashes in <var>dir</var>.
+     <br><dt><samp><span 
class="option">--exclude-dir=</span><var>glob</var></samp><dd><a 
name="index-g_t_002d_002dexclude_002ddir-111"></a><a 
name="index-exclude-directories-112"></a>Skip any directory whose name matches 
the pattern <var>glob</var>.  When
+searching recursively, skip any subdirectory whose base name matches
+<var>glob</var>.  Ignore any redundant trailing slashes in <var>glob</var>.
 
      <br><dt><samp><span class="option">-I</span></samp><dd>Process a binary 
file as if it did not contain matching data;
 this is equivalent to the &lsquo;<samp><span 
class="samp">--binary-files=without-match</span></samp>&rsquo; option.
 
-     <br><dt><samp><span 
class="option">--include=</span><var>glob</var></samp><dd><a 
name="index-g_t_002d_002dinclude-113"></a><a 
name="index-include-files-114"></a><a 
name="index-searching-directory-trees-115"></a>Search only files whose base 
name matches <var>glob</var>
-(using wildcard matching as described under <samp><span 
class="option">--exclude</span></samp>).
+     <br><dt><samp><span 
class="option">--include=</span><var>glob</var></samp><dd><a 
name="index-g_t_002d_002dinclude-113"></a><a 
name="index-include-files-114"></a><a 
name="index-searching-directory-trees-115"></a>Search only files whose name 
matches <var>glob</var>,
+using wildcard matching as described under <samp><span 
class="option">--exclude</span></samp>.
 
      <br><dt><samp><span class="option">-r</span></samp><dt><samp><span 
class="option">--recursive</span></samp><dd><a 
name="index-g_t_002dr-116"></a><a 
name="index-g_t_002d_002drecursive-117"></a><a 
name="index-recursive-search-118"></a><a 
name="index-searching-directory-trees-119"></a><a 
name="index-symbolic-links-120"></a>For each directory operand,
 read and process all files in that directory, recursively. 



reply via email to

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