[0m


CAT(1)		    UNIX Programmer's Manual		   CAT(1)



[1mNAME
     [0mcat - catenate and print

[1mSYNOPSIS
     cat [0m[ [1m-u [0m] [ [1m-n [0m] [ [1m-s [0m] [ [1m-v [0m] file ...

[1mDESCRIPTION
     [0m_C_a_t reads each _f_i_l_e in sequence and displays it on the stan-
     dard output.  Thus

		    cat file

     displays the file on the standard output, and

		    cat file1 file2 >file3

     concatenates the first two files and places the result on
     the third.

     If no input file is given, or if the argument `-' is encoun-
     tered, _c_a_t reads from the standard input file.  Output is
     buffered in the block size recommended by _s_t_a_t(2) unless the
     standard output is a terminal, when it is line buffered.
     The [1m-u [0moption makes the output completely unbuffered.

     The [1m-n [0moption displays the output lines preceded by lines
     numbers, numbered sequentially from 1.  Specifying the [1m-b
     [0moption with the [1m-n [0moption omits the line numbers from blank
     lines.

     The [1m-s [0moption crushes out multiple adjacent empty lines so
     that the output is displayed single spaced.

     The [1m-v [0moption displays non-printing characters so that they
     are visible.  Control characters print like ^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 of the low 7 bits.  A
     [1m-e [0moption may be given with the [1m-v [0moption, which displays a
     `$' character at the end of each line.  Specifying the [1m-t
     [0moption with the [1m-v [0moption displays tab characters as ^I.

[1mSEE ALSO
     [0mcp(1), ex(1), more(1), pr(1), tail(1)

[1mBUGS
     [0mBeware of `cat a b >a' and `cat a b >b', which destroy the
     input files before reading them.







Printed 26/10/92    Revision 1.2 of 19/10/88			1



[0m