1BMORE(1) General Commands Manual BMORE(1)
2
3
4
6 bmore - browse through a binary file
7
9 bmore [ -acdi ] [ -n lines ] [ -w cols ] [ +linenumber ] [ +/ASCII-pat‐
10 tern ] [ +\Hex-pattern ] [ filename ... ]
11
13 more is a filter that displays the contents of a binary file on the
14 terminal, one screenful at a time. It normally pauses after each
15 screenful, and prints --More-- at the bottom of the screen. bmore pro‐
16 vides a two-line overlap between screens for continuity. If bmore is
17 reading from a file rather than a pipe, the percentage of characters
18 displayed so far is also shown.
19
20 bmore scrolls up to display one more screen line in response to a
21 RETURN character; it displays another screenful in response to a SPACE
22 character. Other commands are listed below.
23
24 The screen is divided in three sections or panes: The byte offset
25 (extreme left), the hex pane (middle), and an ascii pane (right) which
26 shows as printable characters those bytes in the hex pane. On an 80
27 column terminal there will be sixteen hex values and their ASCII values
28 on each screen line. Note that (as one would expect) the first byte
29 has the offset 0 (zero).
30
31 bmore sets the terminal to noecho mode, so that the output can be con‐
32 tinuous. Commands that you type do not normally show up on your termi‐
33 nal, except for the / , \ and ! commands.
34
35 If the standard output is not a terminal, more acts just like cat(1V),
36 except that a header is printed before each file in a series.
37
39 -a ASCII mode: no hex representation of the contents. Non printable
40 characters are displayed as a dot (.)
41
42 -c Clear before displaying. Redrawing the screen instead of
43 scrolling.
44
45 -d Display error messages rather than ringing the terminal bell if
46 an unrecognized command is used. This is helpful for inexperi‐
47 enced users.
48
49 -i Ignore case for searching.
50
51 -n lines
52 Displays the indicated number of lines in each screenful, rather
53 than the default (the number of lines in the terminal screen
54 less two).
55
56 -w cols
57 Display number of cols in each line.
58
59 +linenumber
60 Start up at linenumber.
61
62 +/ASCII-pattern
63 Start up at the line containing the regular expression pattern.
64 Note: unlike editors, this construct should not end with a `/'.
65 If it does, then the trailing slash is taken as a character in
66 the search pattern.
67
68
69 USAGE
70
71 Commands
72 The commands take effect immediately; it is not necessary to type a
73 carriage return. Up to the time when the command character itself is
74 given, the user may type the line kill character to cancel the numeri‐
75 cal argument being formed. In addition, the user may type the erase
76 character to redisplay the `--More--(xx%)' message.
77
78 In the following commands, i is a numerical argument (1 by default).
79
80 iSPACE Display another screenful, or i more lines if i is specified.
81
82 iRETURN Display another line, or i more lines, if specified.
83
84 i^D (CTRL-D) Display (scroll down) 11 more lines. i is given,
85 the scroll size is set to i.
86
87 id Same as ^D.
88
89 iz Same as SPACE, except that i, if present, becomes the new
90 default number of lines per screenful.
91
92 is Skip i lines and then print a screenful.
93
94 if Skip i screenfuls and then print a screenful.
95
96 i^B (CTRL-B) Skip back i screenfuls and then print a screenful.
97
98 b Same as ^B (CTRL-D).
99
100 q
101 Q Exit from more.
102
103 = Display the current line number.
104
105 v Drop into the bvi(1) editor at the current offset of the cur‐
106 rent file.
107
108 w Drop into the bvi(1) editor at the current offset of the cur‐
109 rent file. Only the portion of the file displayed on the
110 screen will be loaded.
111
112 h Help. Give a description of all the more commands.
113
114 i/pattern Search for the ith occurrence of the regular expression pat‐
115 tern. Display the screenful starting at the file position
116 that contains the ith match for the regular expression ASCII-
117 pattern, or the end of a pipe, whichever comes first. If
118 bmore is displaying a file and there is no such match, its
119 position in the file remains unchanged. Regular expressions
120 can be edited using erase and kill characters. Erasing back
121 past the first column cancels the search command.
122
123 ´ Single quote. Go to the point from which the last search
124 started. If no search has been performed in the current
125 file, go to the beginning of the file.
126
127 !command Invoke a shell to execute command. The characters % and !,
128 when used within command are replaced with the current file‐
129 name and the previous shell command, respectively. If there
130 is no current filename, % is not expanded. Prepend a back‐
131 slash to these characters to escape expansion.
132
133 i:n Skip to the ith next filename given in the command line, or
134 to the last filename in the list if i is out of range.
135
136 i:p Skip to the ith previous filename given in the command line,
137 or to the first filename if i is out of range. If given
138 while more is positioned within a file, go to the beginning
139 of the file. If more is reading from a pipe, more simply
140 rings the terminal bell.
141
142 :f Display the current filename and offset number.
143
144 :q
145 :Q Exit from bmore (same as q or Q ).
146
147 . Dot. Repeat the previous command.
148
149
150 FILES
151 /etc/termcap terminal data base
152 /usr/share/bvi/bmore.help
153 help file
154
156 bvi(1), termcap(5)
157
158
159
160 3 Jan 2004 BMORE(1)