concatenate and print files
cat [-suv [-et]] [file ... ]
cat reads each file
in sequence and writes it on the standard output.
prints the contents of file
on your terminal, and
cat file1 file2 >file3
concatenates file1 and file2, and writes the results in
If no input file is given, or if the argument -
cat reads from the standard input.
cat processes supplementary code set characters
according to the locale specified in the LC_CTYPE
(see LANG on
The following options apply to cat:
The output is not buffered.
(The default is buffered output.)
cat is silent about non-existent files.
Causes non-printing characters
(with the exception of tabs, new-lines,
to be printed visibly.
ASCII control characters (octal 000 - 037) are printed as
is the corresponding ASCII character in the range octal 100 - 137
(@, A, B, C, . . ., X, Y, Z, [, \, ], ^, and _);
the DEL character (octal 0177) is printed
Other non-printable characters are printed
is the ASCII character specified by the low-order seven bits.
All supplementary code set characters are considered to be printable.
The following options may be used with the -v option:
Causes tabs to be printed as
and formfeeds to be printed as
character to be printed at the end of each line
(prior to the new-line).
The -t and -e options are ignored if the
-v option is not specified.
language-specific message file (See LANG on
cat returns the following values:
If all input files were output successfully.
If an error occurred while accessing one or more input files.
This command has been updated to handle files greater than 2GB.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004