summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-08-20 20:34:54 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-08-20 20:34:54 +0000
commit224f4b32f567f4a88901cf5a8a333e3286b36cf6 (patch)
tree95d50459f18aff6a808f9d76cc041a573d7b2356 /usr.bin
parentf138a3c2b90181b36f0db8eca31f53a18852e4b6 (diff)
Add curly braces {} to the list of special characters in egrep mode.
From Piotr Domagalski, closes PR 3405
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/grep/grep.16
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/grep/grep.1 b/usr.bin/grep/grep.1
index b115d0a2ef2..e2b3ce89c41 100644
--- a/usr.bin/grep/grep.1
+++ b/usr.bin/grep/grep.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: grep.1,v 1.17 2003/08/11 18:49:09 tedu Exp $
+.\" $OpenBSD: grep.1,v 1.18 2003/08/20 20:34:53 millert Exp $
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -261,13 +261,15 @@ Match 1 or less sequential repetitions of the pattern.
Match 1 or more sequential repetitions of the pattern.
.It Cm \&*
Match 0 or more sequential repetitions of the pattern.
+.It Cm \&{}
+Match specified number of sequential repetitions of the pattern.
.It Cm \&[]
Match any single character or range of characters
enclosed in the brackets.
.It Cm \&\e
Escape special characters which have meaning to
.Nm egrep ,
-the set of {$,.,^,[,],|,?,+,*,(,)}.
+the set of {$,.,^,[,],|,?,+,*,{,},(,)}.
.El
.Sh EXAMPLES
To find all occurrences of the word patricia in a file: