The MORE command reads standard input from a pipe or redirected file and displays one screen of information at a time. This command is commonly used to view long files, directory output, etc.
MORE < filename
command | MORE [path][filename]
|command||a command whose output is to be displayed.|
|filename||file(s) to display one screen at a time|
- MORE filename and MORE < filename are essentially synonymous and equivalent to TYPE filename | MORE. In all these cases filename is displayed a screenful at a time. Pressing "Enter" displays the next screen.
- When using the pipe (|), the source can be commands such as DIR and SORT as well as TYPE.
- The display can be terminated at any time by pressing Ctrl-C.
- MORE automatically wraps text to fit the screen
To view a long file named "clients.new" on your screen, any of the following commands redirects the file through the MORE command to begin displaying the contents of the file:
MORE < clients.new
TYPE clients.new | MORE
The MORE command displays the first screen of information and then prompts you with the following message:
--- More ---
Pressing any key will display the next screenful of information.
|File Name||Default Location||Dos Ver.||Win Ver.||Size||Date||Source|
Superscripts denote which same size files, if any, are identical (using FC).