Bell 32V development
[unix-history] / usr / man / man1 / cat.1
CommitLineData
c1030a02
TL
1.TH CAT 1
2.SH NAME
3cat \- catenate and print
4.SH SYNOPSIS
5.B cat
6[
7.B \-u
8]
9file ...
10.SH DESCRIPTION
11.I Cat
12reads each
13.I file
14in sequence
15and writes it on the standard output.
16Thus
17.PP
18.ti+15n
19cat file
20.PP
21prints the file, and
22.PP
23.ti+15n
24cat file1 file2 >file3
25.PP
26concatenates the first two files and places the result on the third.
27.PP
28If no input file is given,
29or if the argument `\-' is encountered,
30.I cat
31reads from the standard
32input file.
33Output is buffered in 512-byte blocks unless the standard
34output is a terminal or the
35.B \-u
36option is specified.
37.SH "SEE ALSO"
38pr(1), cp(1)
39.SH BUGS
40Beware of `cat a b >a' and `cat a b >b', which destroy
41the input files before reading them.