diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2003-12-11 20:48:07 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2003-12-11 20:48:07 +0000 |
commit | ff1e385c6e48cfa2094b4184c0e212ed945b2924 (patch) | |
tree | 18ca3aa1b612fc791bbceec1eef054bb964f919b /usr.bin/grep/grep.1 | |
parent | f1568c968c68fd03df0161f06663d2acb80824b2 (diff) |
Document use of [pattern] without -e, give example of -v with multiple
patterns.
ok deraadt@ jmc@
Diffstat (limited to 'usr.bin/grep/grep.1')
-rw-r--r-- | usr.bin/grep/grep.1 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/grep/grep.1 b/usr.bin/grep/grep.1 index 3b4deb5ca37..879e107e2a2 100644 --- a/usr.bin/grep/grep.1 +++ b/usr.bin/grep/grep.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: grep.1,v 1.20 2003/10/20 05:02:58 jmc Exp $ +.\" $OpenBSD: grep.1,v 1.21 2003/12/11 20:48:06 mcbride Exp $ .\" Copyright (c) 1980, 1990, 1993 .\" The Regents of the University of California. All rights reserved. .\" @@ -42,6 +42,7 @@ .Op Fl -binary-files Ns = Ns Ar value .Op Fl e Ar pattern .Op Fl f Ar file +.Op Ar pattern .Op Ar .Sh DESCRIPTION The @@ -295,6 +296,10 @@ escapes the .Ql \&. which would otherwise match any character. .Pp +To find all lines in a file which do not contain the words foo or bar: +.Pp +.Dl grep -v -e foo -e bar myfile +.Pp A simple example of an extended regular expression: .Pp .Dl egrep '19|20|25' calendar |