2001-01-15 00:00:00 +00:00
|
|
|
<xmp>
|
2005-01-07 00:00:00 +00:00
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
BMORE(1) BMORE(1)
|
2005-01-07 00:00:00 +00:00
|
|
|
|
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
NAME
|
|
|
|
bmore - browse through a binary file
|
2005-01-07 00:00:00 +00:00
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
SYNOPSIS
|
2005-01-07 00:00:00 +00:00
|
|
|
bmore [ -acdi ] [ -n lines ] [ -w cols ] [ +linenumber ] [
|
|
|
|
+/ASCII-pattern ] [ +\Hex-pattern ] [ filename ... ]
|
|
|
|
|
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
DESCRIPTION
|
|
|
|
more is a filter that displays the contents of a binary
|
|
|
|
file on the terminal, one screenful at a time. It nor-
|
|
|
|
mally pauses after each screenful, and prints --More-- at
|
|
|
|
the bottom of the screen. bmore provides a two-line over-
|
|
|
|
lap between screens for continuity. If bmore is reading
|
|
|
|
from a file rather than a pipe, the percentage of charac-
|
|
|
|
ters displayed so far is also shown.
|
2005-01-07 00:00:00 +00:00
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
bmore scrolls up to display one more screen line in
|
|
|
|
response to a RETURN character; it displays another
|
|
|
|
screenful in response to a SPACE character. Other com-
|
|
|
|
mands are listed below.
|
2005-01-07 00:00:00 +00:00
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
The screen is divided in three sections or panes: The byte
|
|
|
|
offset (extreme left), the hex pane (middle), and an ascii
|
|
|
|
pane (right) which shows as printable characters those
|
|
|
|
bytes in the hex pane. On an 80 column terminal there
|
|
|
|
will be sixteen hex values and their ASCII values on each
|
|
|
|
screen line. Note that (as one would expect) the first
|
|
|
|
byte has the offset 0 (zero).
|
2005-01-07 00:00:00 +00:00
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
bmore sets the terminal to noecho mode, so that the output
|
|
|
|
can be continuous. Commands that you type do not normally
|
|
|
|
show up on your terminal, except for the / , \ and ! com-
|
|
|
|
mands.
|
2005-01-07 00:00:00 +00:00
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
If the standard output is not a terminal, more acts just
|
|
|
|
like cat(1V), except that a header is printed before each
|
|
|
|
file in a series.
|
2005-01-07 00:00:00 +00:00
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
OPTIONS
|
|
|
|
-a ASCII mode: no hex representation of the contents.
|
|
|
|
Non printable characters are displayed as a dot (.)
|
2005-01-07 00:00:00 +00:00
|
|
|
|
|
|
|
-c Clear before displaying. Redrawing the screen
|
|
|
|
instead of scrolling.
|
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
-d Display error messages rather than ringing the ter-
|
2005-01-07 00:00:00 +00:00
|
|
|
minal bell if an unrecognized command is used.
|
2001-01-15 00:00:00 +00:00
|
|
|
This is helpful for inexperienced users.
|
2005-01-07 00:00:00 +00:00
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
-i Ignore case for searching.
|
2005-01-07 00:00:00 +00:00
|
|
|
|
|
|
|
-n lines
|
|
|
|
Displays the indicated number of lines in each
|
|
|
|
screenful, rather than the default (the number of
|
|
|
|
lines in the terminal screen less two).
|
|
|
|
|
|
|
|
-w cols
|
|
|
|
Display number of cols in each line.
|
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
+linenumber
|
|
|
|
Start up at linenumber.
|
2005-01-07 00:00:00 +00:00
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
+/ASCII-pattern
|
2005-01-07 00:00:00 +00:00
|
|
|
Start up at the line containing the regular expres-
|
|
|
|
sion pattern. Note: unlike editors, this construct
|
|
|
|
should not end with a `/'. If it does, then the
|
|
|
|
trailing slash is taken as a character in the
|
|
|
|
search pattern.
|
|
|
|
|
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
USAGE
|
2005-01-07 00:00:00 +00:00
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
Commands
|
|
|
|
The commands take effect immediately; it is not necessary
|
2005-01-07 00:00:00 +00:00
|
|
|
to type a carriage return. Up to the time when the com-
|
2001-01-15 00:00:00 +00:00
|
|
|
mand character itself is given, the user may type the line
|
2005-01-07 00:00:00 +00:00
|
|
|
kill character to cancel the numerical argument being
|
|
|
|
formed. In addition, the user may type the erase charac-
|
|
|
|
ter to redisplay the `--More--(xx%)' message.
|
2001-01-15 00:00:00 +00:00
|
|
|
|
|
|
|
In the following commands, i is a numerical argument (1 by
|
|
|
|
default).
|
2005-01-07 00:00:00 +00:00
|
|
|
|
|
|
|
iSPACE Display another screenful, or i more lines if i
|
2001-01-15 00:00:00 +00:00
|
|
|
is specified.
|
2005-01-07 00:00:00 +00:00
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
iRETURN Display another line, or i more lines, if speci-
|
|
|
|
fied.
|
2005-01-07 00:00:00 +00:00
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
i^D (CTRL-D) Display (scroll down) 11 more lines. i
|
|
|
|
is given, the scroll size is set to i.
|
2005-01-07 00:00:00 +00:00
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
id Same as ^D.
|
2005-01-07 00:00:00 +00:00
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
iz Same as SPACE, except that i, if present,
|
2005-01-07 00:00:00 +00:00
|
|
|
becomes the new default number of lines per
|
2001-01-15 00:00:00 +00:00
|
|
|
screenful.
|
2005-01-07 00:00:00 +00:00
|
|
|
|
|
|
|
is Skip i lines and then print a screenful.
|
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
if Skip i screenfuls and then print a screenful.
|
2005-01-07 00:00:00 +00:00
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
i^B (CTRL-B) Skip back i screenfuls and then print a
|
|
|
|
screenful.
|
2005-01-07 00:00:00 +00:00
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
b Same as ^B (CTRL-D).
|
2005-01-07 00:00:00 +00:00
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
q
|
|
|
|
Q Exit from more.
|
2005-01-07 00:00:00 +00:00
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
= Display the current line number.
|
2005-01-07 00:00:00 +00:00
|
|
|
|
|
|
|
v Drop into the bvi(1) editor at the current off-
|
2001-01-15 00:00:00 +00:00
|
|
|
set of the current file.
|
2005-01-07 00:00:00 +00:00
|
|
|
w Drop into the bvi(1) editor at the current off-
|
2001-01-15 00:00:00 +00:00
|
|
|
set of the current file. Only the portion of the
|
2005-01-07 00:00:00 +00:00
|
|
|
file displayed on the screen will be loaded.
|
2001-01-15 00:00:00 +00:00
|
|
|
|
2005-01-07 00:00:00 +00:00
|
|
|
h Help. Give a description of all the more com-
|
2001-01-15 00:00:00 +00:00
|
|
|
mands.
|
2005-01-07 00:00:00 +00:00
|
|
|
|
|
|
|
i/pattern Search for the ith occurrence of the regular
|
|
|
|
expression pattern. Display the screenful
|
|
|
|
starting at the file position that contains the
|
|
|
|
ith match for the regular expression ASCII-pat-
|
|
|
|
tern, or the end of a pipe, whichever comes
|
|
|
|
first. If bmore is displaying a file and there
|
|
|
|
is no such match, its position in the file
|
|
|
|
remains unchanged. Regular expressions can be
|
2001-01-15 00:00:00 +00:00
|
|
|
edited using erase and kill characters. Erasing
|
2005-01-07 00:00:00 +00:00
|
|
|
back past the first column cancels the search
|
2001-01-15 00:00:00 +00:00
|
|
|
command.
|
2005-01-07 00:00:00 +00:00
|
|
|
|
|
|
|
' Single quote. Go to the point from which the
|
2001-01-15 00:00:00 +00:00
|
|
|
last search started. If no search has been per-
|
2005-01-07 00:00:00 +00:00
|
|
|
formed in the current file, go to the beginning
|
|
|
|
of the file.
|
|
|
|
|
|
|
|
!command Invoke a shell to execute command. The charac-
|
|
|
|
ters % and !, when used within command are
|
|
|
|
replaced with the current filename and the pre-
|
|
|
|
vious shell command, respectively. If there is
|
|
|
|
no current filename, % is not expanded. Prepend
|
2001-01-15 00:00:00 +00:00
|
|
|
a backslash to these characters to escape expan-
|
|
|
|
sion.
|
2005-01-07 00:00:00 +00:00
|
|
|
|
|
|
|
i:n Skip to the ith next filename given in the com-
|
|
|
|
mand line, or to the last filename in the list
|
2001-01-15 00:00:00 +00:00
|
|
|
if i is out of range.
|
2005-01-07 00:00:00 +00:00
|
|
|
|
|
|
|
i:p Skip to the ith previous filename given in the
|
|
|
|
command line, or to the first filename if i is
|
2001-01-15 00:00:00 +00:00
|
|
|
out of range. If given while more is positioned
|
2005-01-07 00:00:00 +00:00
|
|
|
within a file, go to the beginning of the file.
|
|
|
|
If more is reading from a pipe, more simply
|
|
|
|
rings the terminal bell.
|
|
|
|
|
|
|
|
:f Display the current filename and offset number.
|
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
:q
|
|
|
|
:Q Exit from bmore (same as q or Q ).
|
2005-01-07 00:00:00 +00:00
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
. Dot. Repeat the previous command.
|
2005-01-07 00:00:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
FILES
|
|
|
|
/etc/termcap terminal data base
|
|
|
|
/usr/local/share/bmore.help
|
|
|
|
help file
|
|
|
|
|
2001-01-15 00:00:00 +00:00
|
|
|
SEE ALSO
|
|
|
|
bvi(1), termcap(5)
|
2005-01-07 00:00:00 +00:00
|
|
|
|
|
|
|
3 Jan 2004
|
|
|
|
</xmp>
|