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.
-edisplays a $ character at the end of each line. This
option only works if you also specify -v.
-sdoes not produce an error message if cat cannot
find or read a specified file.
-tdisplays tabs as ^I. This option only works if you also
specify -v.
-udoes not buffer output.
-vdisplays 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.
0Successful completion.
1Failure due to any of the following:
2Unknown option specified on the command line.
-e, -s, -t, and
-v options are extensions to the POSIX and x/OPEN
standards.
more