[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep branch, master, updated. v3.6-19-ge6571df
From: |
Paul Eggert |
Subject: |
grep branch, master, updated. v3.6-19-ge6571df |
Date: |
Thu, 10 Jun 2021 17:55:46 -0400 (EDT) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".
The branch, master has been updated
via e6571dfd459f55de975ef457cf7dbd4b49ec491c (commit)
from 70517057c9234146d56bb05cc22cd62ab6407c86 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=e6571dfd459f55de975ef457cf7dbd4b49ec491c
commit e6571dfd459f55de975ef457cf7dbd4b49ec491c
Author: Paul Eggert <eggert@cs.ucla.edu>
Date: Thu Jun 10 14:55:21 2021 -0700
doc: improve examples and wording
* doc/grep.texi (The Backslash Character and Special Expressions)
(Usage): Improve doc (Bug#48948).
diff --git a/doc/grep.texi b/doc/grep.texi
index e3b1555..01ac81e 100644
--- a/doc/grep.texi
+++ b/doc/grep.texi
@@ -1479,10 +1479,10 @@ Match the empty string at the edge of a word.
Match the empty string provided it's not at the edge of a word.
@item \<
-Match the empty string at the beginning of word.
+Match the empty string at the beginning of a word.
@item \>
-Match the empty string at the end of word.
+Match the empty string at the end of a word.
@item \w
Match word constituent, it is a synonym for @samp{[_[:alnum:]]}.
@@ -1667,23 +1667,22 @@ The @option{-i} option causes @command{grep}
to ignore case, causing it to match the line @samp{Hello, world!}, which
it would not otherwise match.
-Here is a more complex example session,
+Here is a more complex example,
showing the location and contents of any line
containing @samp{f} and ending in @samp{.c},
within all files in the current directory whose names
-contain @samp{g} and end in @samp{.h}.
+start with non-@samp{.}, contain @samp{g}, and end in @samp{.h}.
The @option{-n} option outputs line numbers, the @option{--} argument
-treats any later arguments starting with @samp{-} as file names not
-options, and the empty file @file{/dev/null} causes file names to be output
+treats any later arguments as file names not options even if
+@code{*g*.h} expands to a file name that starts with @samp{-},
+and the empty file @file{/dev/null} causes file names to be output
even if only one file name happens to be of the form @samp{*g*.h}.
@example
-$ @kbd{grep -n -- 'f.*\.c$' *g*.h /dev/null}
-argmatch.h:1:/* definitions and prototypes for argmatch.c
+grep -n -- 'f.*\.c$' *g*.h /dev/null
@end example
@noindent
-The only line that contains a match is line 1 of @file{argmatch.h}.
Note that the regular expression syntax used in the pattern differs
from the globbing syntax that the shell uses to match file names.
-----------------------------------------------------------------------
Summary of changes:
doc/grep.texi | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
hooks/post-receive
--
grep
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- grep branch, master, updated. v3.6-19-ge6571df,
Paul Eggert <=