bug-grep
[Top][All Lists]
Advanced

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

Re: [bug-grep] doc bug in grep; PATTERN implies a regexp used in --inclu


From: Stepan Kasal
Subject: Re: [bug-grep] doc bug in grep; PATTERN implies a regexp used in --include or --exclude
Date: Thu, 9 Dec 2004 10:12:40 +0100
User-agent: Mutt/1.4.1i

Hello,

On Wed, Dec 08, 2004 at 03:20:10PM +0100, Stepan Kasal wrote:
> I added a small change to the manpage, so that the options are sorted and
> the option -P, --perl-regex, is correctly displayed, see the patch below.

and below was nothing, sorry.  I meant to attach the following.

Have a nice day,
        Stepan

Index: doc/grep.1
===================================================================
RCS file: /cvsroot/grep/grep/doc/grep.1,v
retrieving revision 1.25
diff -u -r1.25 grep.1
--- doc/grep.1  19 Nov 2004 13:51:29 -0000      1.25
+++ doc/grep.1  8 Dec 2004 12:00:23 -0000
@@ -191,10 +191,6 @@
 .I PATTERN
 as a list of fixed strings, separated by newlines,
 any of which is to be matched.
-.BR \-P ", " \-\^\-perl-regexp
-Interpret
-.I PATTERN
-as a Perl regular expression.
 .TP
 .BI \-f " FILE" "\fR,\fP \-\^\-file=" FILE
 Obtain patterns from
@@ -240,6 +236,15 @@
 would normally have been printed.  The scanning will
 stop on the first match.
 .TP
+.BI \-\^\-label= LABEL
+Displays input actually coming from standard input as input coming from file
+.I LABEL.
+This is especially useful for tools like zgrep, e.g.
+.B "gzip -cd foo.gz |grep --label=foo something"
+.TP
+.BR \-\^\-line-buffered
+Use line buffering, it can be a performance penalty.
+.TP
 .BI \-m " NUM" "\fR,\fP \-\^\-max-count=" NUM
 Stop reading a file after
 .I NUM
@@ -294,16 +299,10 @@
 .TP
 .BR \-o ", " \-\^\-only-matching
 Show only the part of a matching line that matches
-.I PATTERN.
+.IR PATTERN .
 .TP
-.BI \-\^\-label= LABEL
-Displays input actually coming from standard input as input coming from file
-.I LABEL.
-This is especially useful for tools like zgrep, e.g.
-.B "gzip -cd foo.gz |grep --label=foo something"
-.TP
-.BR \-\^\-line-buffered
-Use line buffering, it can be a performance penalty.
+.BR \-P ", " \-\^\-perl-regexp
+.RI "Interpret " PATTERN " as a Perl regular expression."
 .TP
 .BR \-q ", " \-\^\-quiet ", " \-\^\-silent
 Quiet; do not write anything to standard output.




reply via email to

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