Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ type(CMD) — OpenDesktop 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


 type(CMD)                       19 June 1992                       type(CMD)


 Name

    type - display the contents of a text file

 Syntax


    type [drive:][path]filename


 Description

    Use the type command to view a text file without modifying it.

 Parameter


    [drive:][path]filename
            Specifies the location and name of the file that you want to
            view.


 Notes


    Displaying binary files

    If you display a binary file or a file created by a program, you may see
    strange characters on the screen, including formfeed characters and
    escape-sequence symbols.  These characters represent control codes used
    in the binary file.  In general, you should avoid using the type command
    to display binary files.

 Examples

    If you want to display the contents of a file named HOLIDAY.MAR, type the
    following command:

       type holiday.mar


    If the file you want to display is long, you can use the more(CMD) com-
    mand along with type, as shown in the following command, to display the
    file's contents one screen at a time:

       type holiday.mar | more


    Before using a pipe (|) for redirection, you should set the TEMP environ-
    ment variable in your AUTOEXEC.BAT file.

 Related commands

    For information about displaying filenames and file sizes, see the
    dir(CMD) command.  For information about displaying text files one screen
    at a time, see the more(CMD) command.


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