1sponge(1) General Commands Manual 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 for constructing pipelines that read from
15and write to the same file.
1617
If no output file is specified, sponge outputs to stdout.
1819
20
21
2006-02-19 sponge(1)