Module 90 morepage

Previous Table of Contents Next


Module 90
more/page

DESCRIPTION

The external more command allows you to peruse a file on your terminal. It is a filter that reads the standard input or files. It lets you view one screen of text at a time.

The page command performs the same function as more with a different screen control. The screen is cleared before each full screen of text is displayed. It also displays ROWS - 1 rather than ROWS - 2 rows of text, where ROWS is the number of lines on your terminal screen.

COMMAND FORMAT

Following is the general format of the more command.

 more [ -cdflsuw ] [ -rows ] [ +linenum ] [ +/pattern] [ file_list ]      page [ -cdflsuw ] [ -rows ] [ +linenum ] [ +/pattern ] [ file_list ] 

BSD (Berkeley)

 more [ -cdflsu ] [ -rows ] [ +linenum ] [ +/pattern ] [ file_list ]      page [ -cdflsu ] [ -rows ] [ +linenum ] [ +/pattern ] [ file_list ] 

Options

The following list describes the options and their arguments that may be used to control how more functions.

-c Draw each screen of text line-by-line . Each line is erased just before the new text is written to the line. This provides a more controlled screen, allowing for easier reading of existing text while new text is being displayed. If the terminal cannot perform a clear-to-end-of-line function, the option is ignored.
-d Changes the prompt to be Press space to continue, q to quit. from --More--(9%). If an incorrect response is entered, then the message Press h for instructions. is displayed instead of sounding the terminal bell. This is useful for application shell programming where more is used as an interface to unsophisticated users.
-f Do not fold long lines. Count logical lines instead of screen lines. Normally more truncates lines longer than the width of the screen (environment variable COLUMNS). This option allows you to pipe nroff output to ul then into more without having lines folded (truncated) because of embedded escape sequences.
-l Do not process form feeds as special characters . Normally more pauses before each form feed, assuming the end of a page of text has been reached. A form feed at the beginning of a file normally causes more to clear the screen before displaying text from the file.
-s Squeeze out adjacent blank lines. Two or more blank lines grouped together are reduced to one blank line. This increases the amount of text displayed on the screen. It is very useful when viewing nroff output.
-u Suppress underlining and standout (bold) mode. The normal sequences for underlining and standout mode are stripped from the output.
-w Prompts and waits for any key to be pressed before exiting. By default more/page will exit without waiting upon reaching the end-of-file.
- rows Specifies the number of rows (lines) to display on your terminal screen. Resets the size , in lines, of your window to rows
+ linenum Begin displaying text at line number linenum of the input.
+/ pattern Begin displaying text two lines before the line containing the regular expression pattern .

Arguments

The following list describes the arguments that may be passed to the more command.

file_list The list of files to be read by more .
If no files are specified, more reads from the standard input, which may be your keyboard or from a pipe.


Previous Table of Contents Next

Copyright Wordware Publishing, Inc.


Illustrated UNIX System V
Illustrated Unix System V/Bsd
ISBN: 1556221878
EAN: 2147483647
Year: N/A
Pages: 144
Authors: Robert Felps

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net