summaryrefslogtreecommitdiff
path: root/util/sbase/sponge.1
diff options
context:
space:
mode:
Diffstat (limited to 'util/sbase/sponge.1')
-rw-r--r--util/sbase/sponge.119
1 files changed, 19 insertions, 0 deletions
diff --git a/util/sbase/sponge.1 b/util/sbase/sponge.1
new file mode 100644
index 00000000..9b668b42
--- /dev/null
+++ b/util/sbase/sponge.1
@@ -0,0 +1,19 @@
+.Dd October 8, 2015
+.Dt SPONGE 1
+.Os sbase
+.Sh NAME
+.Nm sponge
+.Nd soak up standard input and write to a file
+.Sh SYNOPSIS
+.Nm
+.Ar file
+.Sh DESCRIPTION
+.Nm
+reads stdin completely, then writes the saved contents to
+.Ar file .
+This makes it possible to easily create pipes which read from and write to
+the same file.
+.Pp
+If
+.Ar file
+is a symbolic link, it writes to its destination instead.