diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2017-12-10 09:17:25 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2017-12-10 09:17:25 +0000 |
commit | b23a79ea23ebaf1918aef0a264494b866e4f6dee (patch) | |
tree | 7a27a1938d50bca65cb89b33c4471aee3ef60e80 /usr.bin/grep/grep.1 | |
parent | f855a162a0c39e086ffe6e343f0af863cfa9428c (diff) |
- add max-count to SYNOPSIS
- list long options with short, where they have an equivalent
- sync usage()
- minor tweaks
Diffstat (limited to 'usr.bin/grep/grep.1')
-rw-r--r-- | usr.bin/grep/grep.1 | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/usr.bin/grep/grep.1 b/usr.bin/grep/grep.1 index 44fcf2c4851..3085a02dbca 100644 --- a/usr.bin/grep/grep.1 +++ b/usr.bin/grep/grep.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: grep.1,v 1.44 2017/12/09 18:38:37 pirofti Exp $ +.\" $OpenBSD: grep.1,v 1.45 2017/12/10 09:17:24 jmc Exp $ .\" Copyright (c) 1980, 1990, 1993 .\" The Regents of the University of California. All rights reserved. .\" @@ -28,7 +28,7 @@ .\" .\" @(#)grep.1 8.3 (Berkeley) 4/18/94 .\" -.Dd $Mdocdate: December 9 2017 $ +.Dd $Mdocdate: December 10 2017 $ .Dt GREP 1 .Os .Sh NAME @@ -48,6 +48,7 @@ .Op Fl -binary-files Ns = Ns Ar value .Op Fl -context Ns Op = Ns Ar num .Op Fl -line-buffered +.Op Fl -max-count Ns = Ns Ar num .Op Ar pattern .Op Ar .Ek @@ -132,7 +133,7 @@ options. .It Fl b The offset in bytes of a matched pattern is displayed in front of the respective matched line. -.It Fl C Ns Op Ar num +.It Fl C Ns Oo Ar num Oc , Fl -context Ns Op = Ns Ar num Print .Ar num lines of leading and trailing context surrounding each match. @@ -217,7 +218,7 @@ Pathnames are listed once per file searched. If the standard input is searched, the string .Dq (standard input) is written. -.It Fl m Ar num, Fl Fl max-count Ns = Ns Ar num +.It Fl m Ar num , Fl -max-count Ns = Ns Ar count Stop after .Ar num matches. @@ -271,7 +272,7 @@ Force .Nm grep to behave as .Nm zgrep . -.It Fl Fl binary-files Ns = Ns Ar value +.It Fl -binary-files Ns = Ns Ar value Controls searching and printing of binary files. Options are .Ar binary , @@ -281,14 +282,7 @@ do not search binary files; and .Ar text : treat all files as text. -.Sm off -.It Fl Fl context Op = Ar num -.Sm on -Print -.Ar num -lines of leading and trailing context. -The default is 2. -.It Fl Fl line-buffered +.It Fl -line-buffered Force output to be line buffered. By default, output is line buffered when standard output is a terminal and block buffered otherwise. @@ -303,7 +297,7 @@ utility exits with one of the following values: One or more lines were selected. .It Li 1 No lines were selected. -.It Li \*(Gt1 +.It Li >1 An error occurred. .El .Sh EXAMPLES |