cat(1) cat(1)NAME cat - catenates and displays the contents of files SYNOPSIS cat [-] [-e] [-s] [-t] [-u] [-v [file]... ARGUMENTS - Causes cat to read from the standard input. -e Causes cat to display a dollar sign ($) before the newline character at the end of each line. This option must be used in conjunction with the -v option; if it is not, cat ignores this option. file Specifies a file for cat to read. If you do not use any file arguments, cat reads from the standard input. -s Causes cat to be silent if a specified file does not exist. -t Causes the tab character to be displayed as ^I and the form feed character to be displayed as ^L. This option must be used in conjunction with the -v option; if it is not, cat ignores this option. -u Causes cat to not buffer the output. -v Causes cat to display nonprinting characters (with the exception of the form feed, newline, and tab characters) in a special way. If you use this option, cat displays control characters as ^X (CONTROL-X) and the delete character (octal 0177) as ^?. Non-ASCII characters (characters whose high-order bit is set) are displayed as M-x, where x is the character specified by the seven low-order bits. DESCRIPTION cat reads one or more files and writes the contents of each file to the standard output. EXAMPLES This command displays the file named rose: cat rose This command catenates the contents of rose and wisteria and places the result in flowers: cat rose wisteria > flowers January 1992 1
cat(1) cat(1)WARNINGS This command causes the data in file1 to be lost: cat file1 file2 > file1 Therefore, take care when using shell metacharacters to perform I/O redirection. FILES /bin/cat Executable file SEE ALSO cp(1), head(1), more(1), pg(1), pr(1), tail(1) 2 January 1992