blob: 9b668b4267215a6650afe2e584b06a3a51e5f81a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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.
|