1sponge(1) sponge(1)
23
4
NAME
6sponge - soak up standard input and write to a file
7
SYNOPSIS
9sed '...' file | grep '...' | sponge file
10
DESCRIPTION
12sponge reads standard input and writes it out to the specified file.
13Unlike a shell redirect, sponge soaks up all its input before opening
14the output file. This allows constricting pipelines that read from and
15write to the same file.
1617
If no output file is specified, sponge outputs to stdout.
1819
20
21
2006-02-19 sponge(1)