summaryrefslogtreecommitdiff
path: root/sys/man/1
diff options
context:
space:
mode:
authoraiju <devnull@localhost>2017-05-05 08:22:13 +0000
committeraiju <devnull@localhost>2017-05-05 08:22:13 +0000
commit7ade57b678f0799ab0598632403da11fd7271b05 (patch)
tree10997e263d4deec144eba790f277566763a2c319 /sys/man/1
parent20b945a382fabd55f8bc54eaa796badaee8d6fd0 (diff)
sed: add -u flag that flushes output buffers before reading in further input
Diffstat (limited to 'sys/man/1')
-rw-r--r--sys/man/1/sed13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/man/1/sed b/sys/man/1/sed
index e057b7192..1cdf46b0a 100644
--- a/sys/man/1/sed
+++ b/sys/man/1/sed
@@ -10,6 +10,9 @@ sed \- stream editor
.B -g
]
[
+.B -u
+]
+[
.B -e
.I script
]
@@ -44,6 +47,11 @@ option suppresses the default output;
.B -g
causes all substitutions to be global, as if suffixed
.BR g .
+If
+.B -u
+is specified,
+.I sed
+flushes its output buffers before reading in further input.
.PP
A script consists of editing commands, one per line,
of the following form:
@@ -411,3 +419,8 @@ If input is from a pipe, buffering may consume
characters beyond a line on which a
.L q
command is executed.
+.PP
+.B -u
+does not work as expected if
+.B $
+addressing is used.