File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / usr / src / man / man1 / cat.1
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:26:52 2019 UTC (7 years ago) by root
Branches: bsd, MAIN
CVS tags: v121, HEAD
Power 6/32 Unix version 1.21

.TH CAT 1 "18 January 1983"
.UC 4
.SH NAME
cat \- concatenate and print
.SH SYNOPSIS
.B cat
[
.B \-u
] [
.B \-n
] [
.B \-s
] [
.B \-v
]
file ...
.br
.SH DESCRIPTION
.I Cat
reads each
.I file
in sequence and displays it on the standard output.  Thus
.PP
.ti+15n
cat file
.PP
displays the file on the standard output, and
.PP
.ti+15n
cat file1 file2 >file3
.PP
concatenates the first two files and places the result on the third.
.PP
If the
.I file
is omitted or supplied as '\-', then the standard input is used. A file name of '\-' may also be used in a series of file names, as in:
.PP
.ti+15n
 cat -n filename1 - filename2. 
.PP
Output is buffered in 1024-byte blocks unless the standard
output is a terminal, in which case it is line buffered.  The
.B \-u
option makes the output completely unbuffered.
.PP
The
.B \-n
option displays the output lines preceded by lines numbers, numbered
sequentially from 1.  Specifying the 
.B \-b
option with the
.B \-n
option omits the line numbers from blank lines.
.PP
The
.B \-s
option deletes adjacent empty lines so that the
output is displayed single spaced.
.PP
The
.B \-v
option displays non-printing characters so that they are visible.
Control characters print like ^X for control-x; the delete character
(octal 0177) prints as ^?.
Non-ascii characters (with the high bit set) are printed as M-
(for meta) followed by the character of the low 7 bits.  A
.B \-e
option may be given with the
.B \-v
option, which displays a `$' character at the end of each line.
Specifying the 
.B \-t
option with the
.B \-v
option displays tab characters as ^I.
.PP
.SH "SEE ALSO"
cp(1), ex(1), more(1), pr(1), tail(1)
.SH BUGS
Beware of `cat a b >a' and `cat a b >b', which destroy
the input files before reading them.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.