## Name

LIST — List the contents of a text file

## Synopsis

`list` `path` { `path` }

## Description

This command copies text lines from the path(s) given as parameters to the standard output path. The program terminates upon reaching the end-of-file of the last input path. If more than one path is specified, the first path will be copied to standard output, the second path will be copied next, etc.

This command is most commonly used to examine or print text files.

For more information see: the section called “Some Common Command Formats”, the section called “Text Files”

## Examples

    list /d0/startup >/P &        (output is redirected to printer)

    list /D1/user5/document /d0/myfile /d0/Bob/text

    list /TERM >/p                    (copy keyboard to printer - use
                                           “escape” key to terminate input)

    OS9: build animals
    ? cat
    ? cow
    ? dog
    ? elephant
    ? bird
    ? fish
    ? ENTER

    OS9: list animals
    cat
    cow
    dog
    elephant
    bird
    fish