1sponge(1)                                                            sponge(1)
2
3
4

NAME

6       sponge - soak up standard input and write to a file
7

SYNOPSIS

9       sed '...' file | grep '...' | sponge file
10

DESCRIPTION

12       sponge  reads  standard  input and writes it out to the specified file.
13       Unlike a shell redirect, sponge soaks up all its input  before  opening
14       the  output file. This allows constricting pipelines that read from and
15       write to the same file.
16
17       If no output file is specified, sponge outputs to stdout.
18
19
20
21                                  2006-02-19                         sponge(1)
Impressum