xref: /inferno-os/man/1/cat (revision 46439007cf417cbd9ac8049bb4122c890097a0fa)
CAT 1
NAME
cat - concatenate files
SYNOPSIS
cat [ - ] [ file ... ]
DESCRIPTION
Cat reads each file in turn and writes it on the standard output. Thus
.EX cat file

prints the file to standard output, and the following

.EX cat file1 file2 >file3

concatenates two files onto a third.

If no file is given, or where - is given as an argument, cat reads from the standard input. Output is buffered in blocks matching the input.

SOURCE
/appl/cmd/cat.b
"SEE ALSO"
cp (1), stream (1)
BUGS
Beware of "cat a b >a" and "cat a b >b" which destroy input files before reading them.