catconcatenate and display text files |
Command |
cat
[-su
]
[-v
[et
]] [file ...]
cat
displays and concatenates files. It copies each
file argument to the standard output. If you specify no files or give
-
as a file name, cat
reads the standard input.
-e
displays a $
character at the end of each line. This
option only works if you also specify -v
.
-s
does not produce an error message if cat
cannot
find or read a specified file.
-t
displays tabs as ^I
. This option only works if you also
specify -v
.
-u
does not buffer output.
-v
displays all characters including those that are unprintable. If the
character is unprintable, then one of three representations is used.
M-
X is used for character X if the significant
bit is set; ^
X is used for the control character
X (for example, ^A
for CTRL-A), and
\
xxx represents a character with the octal value
xxx. The last form is used if neither of the other representations
can be used.
0
Successful completion.
1
Failure due to any of the following:
2
Unknown option specified on the command line.
-e
, -s
, -t
, and
-v
options are extensions to the POSIX and x/OPEN
standards.
more