HP-UX Reference (11i v2 04/09) - 1 User Commands A-M (vol 1)

m
more(1) more(1)
if
iCtrl-f Move forward i lines, with a default of one screenful. At end-of-file,
more will con-
tinue with the next file in the list, or exit if the current file is the last file in the list.
i
b
iCtrl-b Move backward i lines, with a default of one screenful. If i is more than the screen
size, only the final screenful will be written.
q
Q
:q
:Q
ZZ Exit from more.
=
:f
Ctrl-g Write the name of the file currently being examined, the number relative to the
total number of files there are to examine, the current line number, the current byte
number, and the total bytes to write and what percentage of the file precedes the
current position. All of these items reference the first byte of the line after the last
line written.
v Invoke an editor to edit the current file being examined. The name of the editor is
taken from the environment variable EDITOR, or defaults to vi.IfEDITOR
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 file by rewriting the screen
with the current line as the current position.
h Display a description of all the more commands.
i
/[!]expression Search forward in the file for the i-th line containing the regular expression expres-
sion. 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 modified 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 file rather than
a pipe, then the position in the file remains unchanged.
The user’s erase and kill characters can be used to edit the regular expression.
Erasing back past the first column cancels the search command.
i?[!]expression Same as /, but searches backward in the file for the i th line containing the regular
expression expression .
Note: Unlike editors, the
?. construct should NOT end with a /. If it does, the
trailing slash is taken as a character in the search pattern.
i
n Repeat the previous search for the i-th line (default 1) containing the last expres-
sion (or not containing the last expression , if the previous search was /! or ?!).
i
N 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 com-
mand was executed ("large movement" is defined as any movement of more than a
screenful of lines). If no such movements have been made, return to the beginning
of the file.
!command Invoke a shell with command. The characters % and ! in command are replaced
with the current file name and the previous shell command, respectively. If there is
no current file name, % is not expanded. The sequences \% and \! are replaced
by % and ! respectively.
:e[file]
HP-UX 11i Version 2: September 2004 − 4 − Hewlett-Packard Company Section 1−−601