32v 1m cat

From Computer History Wiki
Jump to: navigation, search

CAT(1) UNIX Programmer's Manual CAT(1)


NAME

    cat - catenate and print

SYNOPSIS

    cat [ -u ] file ...

DESCRIPTION

    _C_a_t reads each _f_i_l_e in sequence and writes it on the stan-
    dard output.  Thus
                   cat file
    prints the file, and
                   cat file1 file2 >file3
    concatenates the first two files and places the result on
    the third.
    If no input file is given, or if the argument `-' is encoun-
    tered, _c_a_t reads from the standard input file.  Output is
    buffered in 512-byte blocks unless the standard output is a
    terminal or the -u option is specified.

SEE ALSO

    pr(1), cp(1)

BUGS

    Beware of `cat a b >a' and `cat a b >b', which destroy the
    input files before reading them.