cat(1) 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. Output
is buffered unless the -u flag option is specified. The -s
flag option makes cat silent about non-existent files.
The -v flag option causes non-printing characters (with the
exception of tabs, newlines and form-feeds) to be printed
visibly. Control characters are printed ^X (CONTROL-x); the
DEL character (octal 0177) is printed ^?. Non-ASCII
characters (with the high bit set) are printed as M-x, where
x is the character specified by the seven low order bits.
When used with the -v flag option, -t causes tabs to be
printed as ^I's, and -e causes a $ character to be printed
at the end of each line (prior to the newline). The -t and
-e flag options are ignored if the -v flag option is not
specified.
EXAMPLE
cat file
prints file, and:
cat file1 file2 > file3
concatenates the first two files and places the result in
the third.
WARNING
Command formats such as
cat file1 file2 > file1
will cause the original data in file1 to be lost, therefore,
take care when using shell special characters.
FILES
/bin/cat
SEE ALSO
cp(1), pg(1), pr(1).
Page 1 (last mod. 1/16/87)