3 058b0118 2005-01-03 devnull cat, read, nobs \- 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 ...
22 058b0118 2005-01-03 devnull .I file ...
24 cfa37a7b 2004-04-10 devnull .SH DESCRIPTION
26 cfa37a7b 2004-04-10 devnull reads each
28 cfa37a7b 2004-04-10 devnull in sequence and writes it on the standard output.
34 cfa37a7b 2004-04-10 devnull prints a file and
37 cfa37a7b 2004-04-10 devnull cat file1 file2 >file3
39 cfa37a7b 2004-04-10 devnull concatenates the first two files and places the result
40 cfa37a7b 2004-04-10 devnull on the third.
44 cfa37a7b 2004-04-10 devnull is given,
46 cfa37a7b 2004-04-10 devnull reads from the standard input.
47 cfa37a7b 2004-04-10 devnull Output is buffered in blocks matching the input.
50 cfa37a7b 2004-04-10 devnull copies to standard output exactly one line from the named
51 cfa37a7b 2004-04-10 devnull .IR file ,
52 cfa37a7b 2004-04-10 devnull default standard input.
53 cfa37a7b 2004-04-10 devnull It is useful in interactive
54 cfa37a7b 2004-04-10 devnull .IR rc (1)
59 cfa37a7b 2004-04-10 devnull flag causes it to continue reading and writing multiple lines until end of file;
61 cfa37a7b 2004-04-10 devnull causes it to read no more than
66 058b0118 2005-01-03 devnull always executes a single
68 cfa37a7b 2004-04-10 devnull for each line of input, which can be helpful when
69 cfa37a7b 2004-04-10 devnull preparing input to programs that expect line-at-a-time data.
70 cfa37a7b 2004-04-10 devnull It never reads any more data from the input than it prints to the output.
73 058b0118 2005-01-03 devnull copies the named files to
74 058b0118 2005-01-03 devnull standard output except that it removes all backspace
75 058b0118 2005-01-03 devnull characters and the characters that precede them.
76 058b0118 2005-01-03 devnull It is useful to use as
77 058b0118 2005-01-03 devnull .B $PAGER
78 058b0118 2005-01-03 devnull with the Unix version of
79 058b0118 2005-01-03 devnull .IR man (1)
80 058b0118 2005-01-03 devnull when run inside a
83 058b0118 2005-01-03 devnull .IR acme (1))
85 cfa37a7b 2004-04-10 devnull .SH SOURCE
86 c3674de4 2005-01-11 devnull .B \*9/src/cmd/cat.c
88 c3674de4 2005-01-11 devnull .B \*9/src/cmd/read.c
90 c3674de4 2005-01-11 devnull .B \*9/bin/nobs
91 cfa37a7b 2004-04-10 devnull .SH SEE ALSO
92 cfa37a7b 2004-04-10 devnull .IR cp (1)
93 cfa37a7b 2004-04-10 devnull .SH DIAGNOSTICS
95 cfa37a7b 2004-04-10 devnull exits with status
97 cfa37a7b 2004-04-10 devnull on end of file or, in the
99 cfa37a7b 2004-04-10 devnull case, if it doesn't read
100 cfa37a7b 2004-04-10 devnull .I nlines
102 cfa37a7b 2004-04-10 devnull .SH BUGS
103 cfa37a7b 2004-04-10 devnull Beware of
104 cfa37a7b 2004-04-10 devnull .L "cat a b >a"
106 cfa37a7b 2004-04-10 devnull .LR "cat a b >b" ,
108 cfa37a7b 2004-04-10 devnull destroy input files before reading them.