Commit | Line | Data |
---|---|---|
e4c4b514 KT |
1 | .th CAT I 1/15/73 |
2 | .sh NAME | |
3 | cat \*- concatenate and print | |
4 | .sh SYNOPSIS | |
5 | .bd cat | |
6 | file ... | |
7 | .sh DESCRIPTION | |
8 | .it Cat | |
9 | reads each file in sequence | |
10 | and writes it on the standard output. | |
11 | Thus: | |
12 | .s3 | |
13 | .bd " cat file" | |
14 | .s3 | |
15 | is about the easiest way to print a file. | |
16 | Also: | |
17 | .s3 | |
18 | .bd " cat file1 file2 >file3" | |
19 | .s3 | |
20 | is about the easiest way to concatenate | |
21 | files. | |
22 | .s3 | |
23 | If no input file is given | |
24 | .it cat | |
25 | reads from the standard | |
26 | input file. | |
27 | .s3 | |
28 | If the argument \fB\*-\fR is encountered, | |
29 | .it cat | |
30 | reads from | |
31 | the standard input file. | |
32 | .s3 | |
33 | .sh "SEE ALSO" | |
34 | pr(I), cp(I) | |
35 | .sh DIAGNOSTICS | |
36 | none; | |
37 | if a file cannot be found it is ignored. | |
38 | .sh BUGS | |
39 | .bd "cat x y >x" | |
40 | and | |
41 | .bd "cat x y >y" | |
42 | cause strange results. |