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