#!/usr/bin/env sed -f
#
# dam - store up all input before emitting it unchanged as output
# usage: prog1 | dam | prog2
#
# dam buffers all its input before emitting it as output.
# useful if you don't actually want a line-by-line flow between programs,
# such as pasting a complete document into a sed(1) pipeline on the terminal.

1h
1!H
$ {
    g
    p
}
d
