Name

more - Browse text files

Syntax

more file

Description

More is used to show the contents of a file, one screen at a time. Any type of file can be displayed, but ASCII (TXT) and script (CMD) files will produce the only meaningful results. For example,

more login

displays the contents of your login script. More than one file can be shown by giving more a file list, such as:

more mailrc resume login

When at the — More (xx%) — prompt, the following commands are available (i denotes a number):

i SPACE

Display another screenful, or i more lines if i is specified.

i RETURN

Display another line, or i more lines, if i is specified.

i ^D

(Ctrl-D) Display 11 more lines. If i is given, the scroll size is set to i.

i d

Same as ^D (Ctrl-D)

i z

Same as SPACE, except that i, if present, becomes the new default number of lines per screenful.

i s

Skip i lines and then display a screenful.

i ^B

(Ctrl-B) Skip back i screenfuls and then display a screenful.

i b

Same as ^B (Ctrl-B)

e

Edit the current file using the editor selected in setenv. When done editing, return back to more.

=

Display the current line number.

i :n

Skip forward i files given in the command line, or to the last filename in the list if i is out of range.

i :p

Skip backward i files given in the command line, or to the first filename in the list if i is out of range.

:f

Display the current filename and line number.

q

Exit from more.

Bugs

Currently, more only works on files of 2048 lines of text or less. (The editors can only edit files with 300 lines of text or less).

See Also

grep(C), lpr(C), tail(C)

Author

Mark de Jong (mdj@pro-mdj.cts.com)