Command Reference Guide

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.1
________________________________________________________________
___ ___
m
more(1) more(1)
if
i<Ctrl-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.
ib
i<Ctrl-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 default 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. Eras-
ing 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 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 ?!).
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 command
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.
Section 1−−546 − 4 − HP-UX Release 11i: December 2000
___
___