PWB1/usr/man/man1/cat.1

Compare this file to the similar file:
Show the results in this format:

.th CAT I 5/31/77
.sh NAME
cat \*- concatenate and print
.sh SYNOPSIS
.bd cat
[
.bd \-s
] [
.bd \-u
]
file ...
.sh DESCRIPTION
.it Cat
reads each
.it file
in sequence
and writes it on the standard output.
Thus
.s3
.bd "   cat file"
.s3
prints the file, and
.s3
.bd "   cat file1 file2 >file3"
.s3
concatenates the first two files and places the result on the third.
.s3
If no input file is given,
or if the argument `\-' is encountered,
.it cat
reads from the standard
input file.
.s3
The
.bd \-s
flag suppresses the error messages that
.it cat
would otherwise give for non-existent (or unreadable) files.
The
.bd \-u
flag causes
.it cat
to work in an unbuffered fashion
(read one character, then write that character).
.sh "SEE ALSO"
pr(I), cp(I)
.sh DIAGNOSTICS
file not found
.sh BUGS
.bd "cat x y >x"
and
.bd "cat x y >y"
cause strange results (because of
.it sh\^\c
(I)).