Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cat(1) — sysv — mips UMIPS RISC/os 4.52

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cp(1)

pg(1)

pr(1)



CAT(1-SysV)         RISC/os Reference Manual          CAT(1-SysV)



NAME
     cat - concatenate and print files

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

DESCRIPTION
     cat reads each file in sequence and writes it on the stan-
     dard 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 encoun-
     tered, cat reads from the standard input file.

     The following options apply to cat.

     -u   The output is not buffered.  (The default is buffered
          output.)

     -s   cat is silent about non-existent files.

     -v   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 char-
          acters (with the high bit set) are printed as M-x,
          where x is the character specified by the seven low
          order bits.

     The following options may be used with the -v option.

     -t   Causes tabs to be printed as ^I's.

     -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
     Command formats such as
          cat file1 file2 >file1
     will cause the original data in file1 to be lost; therefore,
     take care when using shell special characters.



                         Printed 1/15/91                   Page 1





CAT(1-SysV)         RISC/os Reference Manual          CAT(1-SysV)



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





















































 Page 2                  Printed 1/15/91



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