Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cat(1) — CLIX 3.1r7.6.28

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cp(1)

pg(1)

pr(1)



  cat(1)                              CLIX                              cat(1)



  NAME

    cat - Concatenates and displays files

  SYNOPSIS

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

  FLAGS

    -u   Specifies unbuffered output.  (The default is buffered output.)

    -s   Specifies silent execution.  The cat command is silent about
         nonexistent files.

    -v   Causes nondisplaying characters (with the exception of tabs, newlines
         and formfeeds) to be displayed visibly.  ASCII control characters
         (octal 000 - 037) are displayed as ^n, where n is the corresponding
         ASCII character in the range octal 100 - 137 (@, A, B, C, ... , X, Y,
         Z, [, \, ], ^, and _); the DEL character (octal 0177) is displayed
         ^?.  Other nondisplayable characters are displayed as M-x, where x is
         the ASCII character specified by the low-order seven bits.

         When used with the -v flag, the following flags may be used:

         -t   Causes tabs to be displayed as ^I's

         -e   Causes a $ character to be displayed at the end of each line
              (prior to the newline).

         The -t and -e flags are ignored if the -v flag is not specified.

  DESCRIPTION

    The cat command concatenates files and displays the results on stdout.
    The command reads and writes each file in sequence on stdout.  Thus:

    cat file

    displays file on your terminal, and:

    cat file1 file2 >file3

    concatenates file1 and file2, and writes the results in file3.

    If no input file is given, or if the argument - is encountered, cat reads
    from stdin.

  EXAMPLES

    To write the .env file to stdout:



  2/94 - Intergraph Corporation                                              1






  cat(1)                              CLIX                              cat(1)



    cat .env


  CAUTIONS

    Redirecting the output of cat onto one of the files being read will cause
    the loss of the data originally in the file being read.  For example,
    typing:

    cat file1 file2 >file1

    will cause the original data in file1 to be lost.

  EXIT VALUES

    The cat command returns a value of 0 if successful.  If unsuccessful, cat
    returns a value of 2.

  RELATED INFORMATION

    Commands: cp(1), pg(1), pr(1)

































  2                                              Intergraph Corporation - 2/94




Typewritten Software • bear@typewritten.org • Edmonds, WA 98026