2015-01-31 13:20:02 +00:00
|
|
|
.Dd January 30, 2015
|
|
|
|
.Dt SPONGE 1
|
2015-01-31 19:37:03 +00:00
|
|
|
.Os sbase
|
2015-01-30 23:16:25 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm sponge
|
|
|
|
.Nd soak up standard input and write to a file
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Ar file
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2013-07-02 17:26:24 +00:00
|
|
|
reads stdin completely, then writes the saved contents to
|
2015-01-30 23:16:25 +00:00
|
|
|
.Ar file .
|
2013-07-02 17:26:24 +00:00
|
|
|
This makes it possible to easily create pipes which read from and write to
|
|
|
|
the same file.
|
2015-01-30 23:16:25 +00:00
|
|
|
.Pp
|
2015-02-01 19:52:28 +00:00
|
|
|
If the given
|
|
|
|
.Ar file
|
|
|
|
is a symbolic link, it writes to the links destination
|
2013-07-02 17:26:24 +00:00
|
|
|
instead.
|