From ccda9db1730ec5b10b3baa0a7398bd0309ec6659 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Fri, 2 Apr 2004 18:40:10 +0000 Subject: Document --line-buffered ok jmc@ --- usr.bin/grep/grep.1 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'usr.bin') 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. -- cgit v1.2.3