


      CAT(1)                      (UNIX 5.2)                     CAT(1)



      NAME
           cat - concatenate and print files

      SYNTAX
           cat [ -u ] [ -s ] [ -v [-t] [-e] ] file ...

      DESCRIPTION
           Cat reads each file in sequence and writes it on the
           standard output.  Thus:

                cat file

           prints the file, 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
           encountered, cat reads from the standard input file.  Output
           is buffered unless the -u option is specified.  The -s
           option makes cat silent about non-existent files.

           The -v option causes non-printing characters (with the
           exception of tabs, new-lines and form-feeds) to be printed
           visibly.  Control characters are printed ^X (control-x); the
           DEL character (octal 0177) is printed ^?.  Non-ASCII
           characters (with the high bit set) are printed as M-x, where
           x is the character specified by the seven low order bits.

           When used with the -v option, -t causes tabs to be printed
           as ^I's, and -e causes a $ character to be printed at the
           end of each line (prior to the new-line).  The -t and -e
           options are ignored if the -v option is not specified.

      WARNING
           Do not cat a file to itself, such as
                cat file1 file2 >file1
           because the contents of file1 will be lost.  (The
           destination file would be opened and cleared before the two
           source files are cat'ed, thus ruining file1 before it is
           read.)

      SEE ALSO
           cp(1), pg(1), pr(1).









      Page 1                                          (73 A2 02MT REV1)



