3 cfa37a7b 2004-04-10 devnull cat, read \- catenate files
4 cfa37a7b 2004-04-10 devnull .SH SYNOPSIS
7 cfa37a7b 2004-04-10 devnull .I file ...
17 cfa37a7b 2004-04-10 devnull .I file ...
19 cfa37a7b 2004-04-10 devnull .SH DESCRIPTION
21 cfa37a7b 2004-04-10 devnull reads each
23 cfa37a7b 2004-04-10 devnull in sequence and writes it on the standard output.
29 cfa37a7b 2004-04-10 devnull prints a file and
32 cfa37a7b 2004-04-10 devnull cat file1 file2 >file3
34 cfa37a7b 2004-04-10 devnull concatenates the first two files and places the result
35 cfa37a7b 2004-04-10 devnull on the third.
39 cfa37a7b 2004-04-10 devnull is given,
41 cfa37a7b 2004-04-10 devnull reads from the standard input.
42 cfa37a7b 2004-04-10 devnull Output is buffered in blocks matching the input.
45 cfa37a7b 2004-04-10 devnull copies to standard output exactly one line from the named
46 cfa37a7b 2004-04-10 devnull .IR file ,
47 cfa37a7b 2004-04-10 devnull default standard input.
48 cfa37a7b 2004-04-10 devnull It is useful in interactive
49 cfa37a7b 2004-04-10 devnull .IR rc (1)
54 cfa37a7b 2004-04-10 devnull flag causes it to continue reading and writing multiple lines until end of file;
56 cfa37a7b 2004-04-10 devnull causes it to read no more than
60 cfa37a7b 2004-04-10 devnull Read always executes a single
62 cfa37a7b 2004-04-10 devnull for each line of input, which can be helpful when
63 cfa37a7b 2004-04-10 devnull preparing input to programs that expect line-at-a-time data.
64 cfa37a7b 2004-04-10 devnull It never reads any more data from the input than it prints to the output.
65 cfa37a7b 2004-04-10 devnull .SH SOURCE
66 b5fdffee 2004-04-19 devnull .B /usr/local/plan9/src/cmd/cat.c
68 b5fdffee 2004-04-19 devnull .B /usr/local/plan9/src/cmd/read.c
69 cfa37a7b 2004-04-10 devnull .SH SEE ALSO
70 cfa37a7b 2004-04-10 devnull .IR cp (1)
71 cfa37a7b 2004-04-10 devnull .SH DIAGNOSTICS
73 cfa37a7b 2004-04-10 devnull exits with status
75 cfa37a7b 2004-04-10 devnull on end of file or, in the
77 cfa37a7b 2004-04-10 devnull case, if it doesn't read
78 cfa37a7b 2004-04-10 devnull .I nlines
81 cfa37a7b 2004-04-10 devnull Beware of
82 cfa37a7b 2004-04-10 devnull .L "cat a b >a"
84 cfa37a7b 2004-04-10 devnull .LR "cat a b >b" ,
86 cfa37a7b 2004-04-10 devnull destroy input files before reading them.