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