1sponge(1)                   General Commands Manual                  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 for constructing pipelines that read from
15       and 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