NAME | SYNOPSIS | DESCRIPTION | OPTIONS | EXIT STATUS | ATTRIBUTES | SEE ALSO
The cat utility reads files sequentially, writing them to the standard output. The file operands are processed in command line order. A single dash represents the standard input.
The following options are supported:
Number the non-blank output lines, starting at 1.
Display non-printing characters (see the -v option), and display a dollar sign ("$") at the end of each line.
Number the output lines, starting at 1.
Squeeze multiple adjacent empty lines, causing the output to be single spaced.
Display non-printing characters (see the -v option), and display tab characters as "^I".
Guarantee that the output is unbuffered.
Display non-printing characters so they are visible. Control characters print as "^X" for control-X; the delete character (octal 0177) prints as "^?". Non-ASCII characters (with the high bit set) are printed as "M-" (for meta) followed by the character for the low 7 bits.
The following exit values are returned:
All input files were output successfully.
An error occurred.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
Rob Pike. UNIX Style, or cat -v Considered Harmful, USENIX Summer Conference Proceedings, 1983.
NAME | SYNOPSIS | DESCRIPTION | OPTIONS | EXIT STATUS | ATTRIBUTES | SEE ALSO