CAT(1) SysV CAT(1)
NAME
cat - concatenate and print files
SYNOPSIS
cat [ -u ] [ -s ] [ -v [-t] [-e] ] file ...
DESCRIPTION
cat reads each file in sequence and writes it on the standard output. If
no input file is given, or if the argument "-" is encountered, cat reads
from the standard input file.
OPTIONS
-u Produce unbuffered output. (The default is buffered output.)
-s Ignore non-existent files.
-v Make non-printing characters visible (except for tabs, new-lines and
form-feeds). Print control characters (CTRL key and X) as "^X", the
delete character (DELETE key - octal 0177) as a caret with a
question mark "^?", and non-ASCII characters (with the high bit set)
as M-x, where x is the character specified by the seven low-order
bits.
-t With the -v option, print tabs as ^I.
-e With the -v option, print a dollar sign ($) 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.
EXAMPLES
To write file1 on standard output, type the following:
# cat file1
To write standard input to file1, use this command:
# cat >file1
To write file1 and file2 to file3, type this:
# cat file1 file2 >file3
BUGS
Command formats such as cat file1 file2 >file1 destroy the original data
in file1. Be careful when using shell special characters.
NOTE
cat has user-settable character classes. See chrtbl(1M), ctype(3C),
environ(5).
FILES
/lib/chrclass/*
SEE ALSO
cp(1), pg(1), pr(1).