summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/grep/grep.19
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.bin/grep/grep.1 b/usr.bin/grep/grep.1
index 92bf5304100..34acdebb9fc 100644
--- a/usr.bin/grep/grep.1
+++ b/usr.bin/grep/grep.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: grep.1,v 1.23 2004/03/15 08:54:27 tedu Exp $
+.\" $OpenBSD: grep.1,v 1.24 2004/04/02 18:40:09 otto Exp $
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -40,6 +40,7 @@
.Op Fl CEFGHILPRSUVZabchilnoqsvwx
.Op Fl -context Ns Op = Ns Ar num
.Op Fl -binary-files Ns = Ns Ar value
+.Op Fl -line-buffered
.Op Fl e Ar pattern
.Op Fl f Ar file
.Op Ar pattern
@@ -229,6 +230,12 @@ do not search binary files;
and
.Ar text ,
treat all files as text.
+.Sm off
+.It Fl Fl line-buffered
+.Sm on
+Force output to be line buffered.
+By default, output is line buffered when standard output is a terminal
+and block buffered otherwise.
.Pp
.El
If no file arguments are specified, the standard input is used.