cat

concatenate and display text files

Command


SYNOPSIS

cat [-su] [-v[et]] [file ...]


DESCRIPTION

cat displays and concatenates files. It copies each file argument to the standard output. If you specify no files or give - as a file name, cat reads the standard input.

Options

-e

displays a $ character at the end of each line. This option only works if you also specify -v.

-s

does not produce an error message if cat cannot find or read a specified file.

-t

displays tabs as ^I. This option only works if you also specify -v.

-u

does not buffer output.

-v

displays all characters including those that are unprintable. If the character is unprintable, then one of three representations is used. M-X is used for character X if the significant bit is set; ^X is used for the control character X (for example, ^A for CTRL-A), and \xxx represents a character with the octal value xxx. The last form is used if neither of the other representations can be used.


DIAGNOSTICS

Possible exit status values are:
0

Successful completion.

1

Failure due to any of the following:

— inability to open the input file
— end-of-file detected on the standard output
— the input file is the same as the output file
2

Unknown option specified on the command line.


PORTABILITY

POSIX.2. x/OPEN Portability Guide 4.0.

The -e, -s, -t, and -v options are extensions to the POSIX and x/OPEN standards.


SEE ALSO

Commands:
more


Updated MKS Toolkit [3khat16.ico]HP3000 [3khat16.ico]3kMail [archive16.gif]