grep-commit
[Top][All Lists]
Advanced

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

Changes to grep/manual/html_node/Context-Line-Control.html,v


From: Jim Meyering
Subject: Changes to grep/manual/html_node/Context-Line-Control.html,v
Date: Tue, 23 Mar 2010 12:04:27 +0000

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

Index: html_node/Context-Line-Control.html
===================================================================
RCS file: /webcvs/grep/grep/manual/html_node/Context-Line-Control.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- html_node/Context-Line-Control.html 24 May 2009 18:42:58 -0000      1.1
+++ html_node/Context-Line-Control.html 23 Mar 2010 12:04:18 -0000      1.2
@@ -1,8 +1,8 @@
 <html lang="en">
 <head>
-<title>Context Line Control - GNU Grep 2.5.4</title>
+<title>Context Line Control - 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">
@@ -12,8 +12,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,
@@ -59,6 +59,13 @@
 
      <br><dt>&lsquo;<samp><span class="samp">-C 
</span><var>num</var></samp>&rsquo;<dt>&lsquo;<samp><span 
class="samp">-</span><var>num</var></samp>&rsquo;<dt>&lsquo;<samp><span 
class="samp">--context=</span><var>num</var></samp>&rsquo;<dd><a 
name="index-g_t_002dC-84"></a><a name="index-g_t_002d_002dcontext-85"></a><a 
name="index-g_t_002d_0040var_007bnum_007d-86"></a><a 
name="index-context-87"></a>Print <var>num</var> lines of leading and trailing 
output context.
 
+     <br><dt>&lsquo;<samp><span 
class="samp">--group-separator=</span><var>string</var></samp>&rsquo;<dd><a 
name="index-g_t_002d_002dgroup_002dseparator-88"></a><a 
name="index-group-separator-89"></a>When <samp><span 
class="option">-A</span></samp>, <samp><span class="option">-B</span></samp> or 
<samp><span class="option">-C</span></samp> are in use,
+print <var>string</var> instead of &lsquo;<samp><span 
class="samp">--</span></samp>&rsquo; around disjoint groups
+of lines.
+
+     <br><dt>&lsquo;<samp><span 
class="samp">--no-group-separator</span></samp>&rsquo;<dd><a 
name="index-g_t_002d_002dgroup_002dseparator-90"></a><a 
name="index-group-separator-91"></a>When <samp><span 
class="option">-A</span></samp>, <samp><span class="option">-B</span></samp> or 
<samp><span class="option">-C</span></samp> are in use,
+print disjoint groups of lines adjacent to each other.
+
    </dl>
 
    <p>Matching lines normally use &lsquo;<samp><span 
class="samp">:</span></samp>&rsquo; as a separator
@@ -68,11 +75,12 @@
 matching lines are simply output one right after another. 
 When nonzero context is specified,
 lines that are adjacent in the input form a group
-and are output one right after another,
-but disjoint groups of lines are separated by a &lsquo;<samp><span 
class="samp">--</span></samp>&rsquo;
-without any prefix and on a line of its own. 
-Each group may contain several matching lines
-when they are close enough to each other
+and are output one right after another, while
+a separator appears by default between disjoint groups on a line
+of its own and without any prefix.  The default separator
+is &lsquo;<samp><span class="samp">--</span></samp>&rsquo;, however whether to 
include it and its appearance
+can be changed with the options above.  Each group may contain
+several matching lines when they are close enough to each other
 that two otherwise adjacent but divided groups connect
 and can just merge into a single contiguous one.
 




reply via email to

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