m

more(1)

more(1)

if

i<Ctrl-f>Move forward i lines, with a default of one screenful. At end-of-®le, more will continue with the next ®le in the list, or exit if the current ®le is the last ®le in the list.

ib

i<Ctrl-b>Move backward i lines, with a default of one screenful. If i is more than the screen size, only the ®nal screenful will be written.

q

Q :q :Q

ZZExit from more.

=

:f

<Ctrl-g>Write the name of the ®le currently being examined, the number relative to the total number of ®les there are to examine, the current line number, the current byte number, and the total bytes to write and what percentage of the ®le precedes the current position. All of these items reference the ®rst byte of the line after the last line written.

vInvoke an editor to edit the current ®le being examined. The name of the editor is taken from the environment variable EDITOR, or default to vi. If EDITOR represents either vi or ex, the editor is invoked with options such that the current editor line is the physical line corresponding to the current position in more at the time of the invocation.

When the editor exits, more resumes on the current ®le by rewriting the screen with the current line as the current position.

hDisplay a description of all the more commands.

i/[!]expression

Search forward in the ®le for the i-th line containing the regular expression expression . The default value for i is 1. The search starts at the line following the current position. If the search is successful, the screen is modi®ed so that the searched-for line is in the current position. The null regular expression (/<Return>) repeats the search using the previous regular expression. If the character ! is included, the lines for searching are those that do not contain expression.

If there are less than i occurrences of expression, and the input is a ®le rather than a pipe, then the position in the ®le remains unchanged.

The user's erase and kill characters can be used to edit the regular expression. Erasing back past the ®rst column cancels the search command.

i ?[!]expression

Same as /, but searches backward in the ®le for the i th line containing the regular expression expression.

 

Note: Unlike editors, the ?. construct should NOT end with a /. If it does, the trail-

 

ing slash is taken as a character in the search pattern.

in

Repeat the previous search for the i-th line (default 1) containing the last expression

 

(or not containing the last expression, if the previous search was /! or ?!).

iN

Repeat the search for the opposite direction of the previous search for the i-th line

 

(default 1) containing the last expression

''(2 apostrophes) Return to the position from which the last large movement command was executed ("large movement" is de®ned as any movement of more than a screenful of lines). If no such movements have been made, return to the beginning of the ®le.

!command Invoke a shell with command. The characters % and ! in command are replaced with the current ®le name and the previous shell command, respectively. If there is no current ®le name, % is not expanded. The sequences \% and \! are replaced by % and ! respectively.

Section 1546

− 4 −

HP-UX Release 11i: December 2000