0
|
1 |
'\" t
|
11
|
2 |
.\" ident "@(#)bzmore.1.sunman 1.3 10/03/16 SMI"
|
0
|
3 |
.\"
|
|
4 |
.\"
|
|
5 |
.\"Shamelessly copied from zmore.1 by Philippe Troin <[email protected]>
|
|
6 |
.\"for Debian GNU/Linux
|
|
7 |
.TH BZMORE 1
|
|
8 |
.SH NAME
|
|
9 |
bzmore, bzless \- file perusal filter for crt viewing of bzip2 compressed text
|
|
10 |
.SH SYNOPSIS
|
|
11 |
.B bzmore
|
|
12 |
[ name ... ]
|
|
13 |
.br
|
|
14 |
.B bzless
|
|
15 |
[ name ... ]
|
|
16 |
.SH NOTE
|
|
17 |
In the following description,
|
|
18 |
.I bzless
|
|
19 |
and
|
|
20 |
.I less
|
|
21 |
can be used interchangeably with
|
|
22 |
.I bzmore
|
|
23 |
and
|
|
24 |
.I more.
|
|
25 |
.SH DESCRIPTION
|
|
26 |
.I Bzmore
|
|
27 |
is a filter which allows examination of compressed or plain text files
|
|
28 |
one screenful at a time on a soft-copy terminal.
|
|
29 |
.I bzmore
|
|
30 |
works on files compressed with
|
|
31 |
.I bzip2
|
|
32 |
and also on uncompressed files.
|
|
33 |
If a file does not exist,
|
|
34 |
.I bzmore
|
|
35 |
looks for a file of the same name with the addition of a .bz2 suffix.
|
|
36 |
.PP
|
|
37 |
.I Bzmore
|
|
38 |
normally pauses after each screenful, printing --More--
|
|
39 |
at the bottom of the screen.
|
|
40 |
If the user then types a carriage return, one more line is displayed.
|
|
41 |
If the user hits a space,
|
|
42 |
another screenful is displayed. Other possibilities are enumerated later.
|
|
43 |
.PP
|
|
44 |
.I Bzmore
|
|
45 |
looks in the file
|
|
46 |
.I /etc/termcap
|
|
47 |
to determine terminal characteristics,
|
|
48 |
and to determine the default window size.
|
|
49 |
On a terminal capable of displaying 24 lines,
|
|
50 |
the default window size is 22 lines.
|
|
51 |
Other sequences which may be typed when
|
|
52 |
.I bzmore
|
|
53 |
pauses, and their effects, are as follows (\fIi\fP is an optional integer
|
|
54 |
argument, defaulting to 1) :
|
|
55 |
.PP
|
|
56 |
.IP \fIi\|\fP<space>
|
|
57 |
display
|
|
58 |
.I i
|
|
59 |
more lines, (or another screenful if no argument is given)
|
|
60 |
.PP
|
|
61 |
.IP ^D
|
|
62 |
display 11 more lines (a ``scroll'').
|
|
63 |
If
|
|
64 |
.I i
|
|
65 |
is given, then the scroll size is set to \fIi\|\fP.
|
|
66 |
.PP
|
|
67 |
.IP d
|
|
68 |
same as ^D (control-D)
|
|
69 |
.PP
|
|
70 |
.IP \fIi\|\fPz
|
|
71 |
same as typing a space except that \fIi\|\fP, if present, becomes the new
|
|
72 |
window size. Note that the window size reverts back to the default at the
|
|
73 |
end of the current file.
|
|
74 |
.PP
|
|
75 |
.IP \fIi\|\fPs
|
|
76 |
skip \fIi\|\fP lines and print a screenful of lines
|
|
77 |
.PP
|
|
78 |
.IP \fIi\|\fPf
|
|
79 |
skip \fIi\fP screenfuls and print a screenful of lines
|
|
80 |
.PP
|
|
81 |
.IP "q or Q"
|
|
82 |
quit reading the current file; go on to the next (if any)
|
|
83 |
.PP
|
|
84 |
.IP "e or q"
|
|
85 |
When the prompt --More--(Next file:
|
|
86 |
.IR file )
|
|
87 |
is printed, this command causes bzmore to exit.
|
|
88 |
.PP
|
|
89 |
.IP s
|
|
90 |
When the prompt --More--(Next file:
|
|
91 |
.IR file )
|
|
92 |
is printed, this command causes bzmore to skip the next file and continue.
|
|
93 |
.PP
|
|
94 |
.IP =
|
|
95 |
Display the current line number.
|
|
96 |
.PP
|
|
97 |
.IP \fIi\|\fP/expr
|
|
98 |
search for the \fIi\|\fP-th occurrence of the regular expression \fIexpr.\fP
|
|
99 |
If the pattern is not found,
|
|
100 |
.I bzmore
|
|
101 |
goes on to the next file (if any).
|
|
102 |
Otherwise, a screenful is displayed, starting two lines before the place
|
|
103 |
where the expression was found.
|
|
104 |
The user's erase and kill characters may be used to edit the regular
|
|
105 |
expression.
|
|
106 |
Erasing back past the first column cancels the search command.
|
|
107 |
.PP
|
|
108 |
.IP \fIi\|\fPn
|
|
109 |
search for the \fIi\|\fP-th occurrence of the last regular expression entered.
|
|
110 |
.PP
|
|
111 |
.IP !command
|
|
112 |
invoke a shell with \fIcommand\|\fP.
|
|
113 |
The character `!' in "command" are replaced with the
|
|
114 |
previous shell command. The sequence "\\!" is replaced by "!".
|
|
115 |
.PP
|
|
116 |
.IP ":q or :Q"
|
|
117 |
quit reading the current file; go on to the next (if any)
|
|
118 |
(same as q or Q).
|
|
119 |
.PP
|
|
120 |
.IP .
|
|
121 |
(dot) repeat the previous command.
|
|
122 |
.PP
|
|
123 |
The commands take effect immediately, i.e., it is not necessary to
|
|
124 |
type a carriage return.
|
|
125 |
Up to the time when the command character itself is given,
|
|
126 |
the user may hit the line kill character to cancel the numerical
|
|
127 |
argument being formed.
|
|
128 |
In addition, the user may hit the erase character to redisplay the
|
|
129 |
--More-- message.
|
|
130 |
.PP
|
|
131 |
At any time when output is being sent to the terminal, the user can
|
|
132 |
hit the quit key (normally control\-\\).
|
|
133 |
.I Bzmore
|
|
134 |
will stop sending output, and will display the usual --More--
|
|
135 |
prompt.
|
|
136 |
The user may then enter one of the above commands in the normal manner.
|
|
137 |
Unfortunately, some output is lost when this is done, due to the
|
|
138 |
fact that any characters waiting in the terminal's output queue
|
|
139 |
are flushed when the quit signal occurs.
|
|
140 |
.PP
|
|
141 |
The terminal is set to
|
|
142 |
.I noecho
|
|
143 |
mode by this program so that the output can be continuous.
|
|
144 |
What you type will thus not show on your terminal, except for the / and !
|
|
145 |
commands.
|
|
146 |
.PP
|
|
147 |
If the standard output is not a teletype, then
|
|
148 |
.I bzmore
|
|
149 |
acts just like
|
|
150 |
.I bzcat,
|
|
151 |
except that a header is printed before each file.
|
|
152 |
.SH FILES
|
|
153 |
.DT
|
|
154 |
/etc/termcap Terminal data base
|
|
155 |
.SH ATTRIBUTES
|
|
156 |
See
|
|
157 |
.BR attributes (5)
|
|
158 |
for descriptions of the following attributes:
|
|
159 |
.sp
|
|
160 |
.TS
|
|
161 |
box;
|
|
162 |
cbp-1 | cbp-1
|
|
163 |
l | l .
|
|
164 |
ATTRIBUTE TYPE ATTRIBUTE VALUE
|
|
165 |
=
|
11
|
166 |
Availability compress/bzip2
|
0
|
167 |
=
|
|
168 |
Interface Stability Committed
|
|
169 |
.TE
|
|
170 |
.PP
|
|
171 |
.SH "SEE ALSO"
|
|
172 |
more(1), less(1), bzip2(1), bzdiff(1), bzgrep(1)
|