[Next] [Previous] [Up] [Top] [Contents]

3.8 Display Commands

3.8.2 cat - concatenate a file

Display the contents of a file with the concatenate command, cat.

Syntax

cat [options] [file]

Common Options

-n precede each line with a line number

-v display non-printing characters, except tabs, new-lines, and form-feeds

-e display $ at the end of each line (prior to new-line) (when used with -v option)

Examples

% cat filename

You can list a series of files on the command line, and cat will concatenate them, starting each in turn, immediately after completing the previous one, e.g.:

% cat file1 file2 file3


Introduction to Unix - 14 AUG 1996
[Next] [Previous] [Up] [Top] [Contents]