> DOS 中文参考手册 > more

MORE

(more)


逐屏显示输出。MORE 命令从管道或重定向文件中读标准输入,并每次显示一屏信息。该命令一般用于查看长文件。

MORE [/E [/C] [/P] [/S] [/Tn] [+n]] < [drive:][path]filename

command-name | MORE [/E [/C] [/P] [/S] [/Tn] [+n]]

MORE /E [/C] [/P] [/S] [/Tn] [+n] [files]

[drive:][path]filename 指定要逐屏显示的文件。

command-name 指定要显示其输出的命令 。

/E 启用扩展功能

/C 显示页面前先清除屏幕

/P 扩展 FormFeed 字符

/S 将多个空白行缩成一行

/Tn 将跳格键扩展成 n 个空格(默认值为 8)

命令行开关可以出现在 MORE 环境变量中。

+n 从第 n 行开始显示第一个文件

files 要显示的文件列表。 用空格分开列表中的文件。

如果扩展的功能已经启用,在 -- More -- 提示处会接受下列命令:

P n 显示下 n 行

S n 略过下 n 行

F 显示下个文件

Q 退出

= 显示行号

? 显示帮助行

<space> 显示下一页

<ret> 显示下一行

★★★★★实例★★★★★:

假如要在屏幕上观看一个名为CLIENTS.NEW的较长文件。以下两个命令都可以重定向显示文件内容:

more < clients.new

type clients.new | more

MORE命令显示完CLIENTS.NEW的第一屏信息后,提示以下信息:

― More ―

这时按任意键就可以查看下一屏信息。


Displays output one screen at a time.

MORE [/E [/C] [/P] [/S] [/Tn] [+n]] < [drive:][path]filename

command-name | MORE [/E [/C] [/P] [/S] [/Tn] [+n]]

MORE /E [/C] [/P] [/S] [/Tn] [+n] [files]

[drive:][path]filename Specifies a file to display one screen at a time.

command-name Specifies a command whose output will be displayed.

/E Enable extended features

/C Clear screen before displaying page

/P Expand FormFeed characters

/S Squeeze multiple blank lines into a single line

/Tn Expand tabs to n spaces (default 8)

Switches can be present in the MORE environment variable.

+n Start displaying the first file at line n

files List of files to be displayed. Files in the list are separated by blanks.

If extended features are enabled, the following commands are accepted at the -- More -- prompt:

P n Display next n lines

S n Skip next n lines

F Display next file

Q Quit

= Show line number

? Show help line

<space> Display next page

<ret> Display next line


上一篇:
下一篇: