1 .\" $NetBSD: bzmore.1,v 1.1.1.1 2012/05/07 00:21:47 wiz Exp $
3 .\"Shamelessly copied from zmore.1 by Philippe Troin <phil@fifi.org>
4 .\"for Debian GNU/Linux
7 bzmore, bzless \- file perusal filter for crt viewing of bzip2 compressed text
15 In the following description,
19 can be used interchangeably with
25 is a filter which allows examination of compressed or plain text files
26 one screenful at a time on a soft-copy terminal.
28 works on files compressed with
30 and also on uncompressed files.
31 If a file does not exist,
33 looks for a file of the same name with the addition of a .bz2 suffix.
36 normally pauses after each screenful, printing --More--
37 at the bottom of the screen.
38 If the user then types a carriage return, one more line is displayed.
39 If the user hits a space,
40 another screenful is displayed. Other possibilities are enumerated later.
45 to determine terminal characteristics,
46 and to determine the default window size.
47 On a terminal capable of displaying 24 lines,
48 the default window size is 22 lines.
49 Other sequences which may be typed when
51 pauses, and their effects, are as follows (\fIi\fP is an optional integer
52 argument, defaulting to 1) :
57 more lines, (or another screenful if no argument is given)
60 display 11 more lines (a ``scroll'').
63 is given, then the scroll size is set to \fIi\|\fP.
66 same as ^D (control-D)
69 same as typing a space except that \fIi\|\fP, if present, becomes the new
70 window size. Note that the window size reverts back to the default at the
71 end of the current file.
74 skip \fIi\|\fP lines and print a screenful of lines
77 skip \fIi\fP screenfuls and print a screenful of lines
80 quit reading the current file; go on to the next (if any)
83 When the prompt --More--(Next file:
85 is printed, this command causes bzmore to exit.
88 When the prompt --More--(Next file:
90 is printed, this command causes bzmore to skip the next file and continue.
93 Display the current line number.
96 search for the \fIi\|\fP-th occurrence of the regular expression \fIexpr.\fP
97 If the pattern is not found,
99 goes on to the next file (if any).
100 Otherwise, a screenful is displayed, starting two lines before the place
101 where the expression was found.
102 The user's erase and kill characters may be used to edit the regular
104 Erasing back past the first column cancels the search command.
107 search for the \fIi\|\fP-th occurrence of the last regular expression entered.
110 invoke a shell with \fIcommand\|\fP.
111 The character `!' in "command" are replaced with the
112 previous shell command. The sequence "\\!" is replaced by "!".
115 quit reading the current file; go on to the next (if any)
119 (dot) repeat the previous command.
121 The commands take effect immediately, i.e., it is not necessary to
122 type a carriage return.
123 Up to the time when the command character itself is given,
124 the user may hit the line kill character to cancel the numerical
125 argument being formed.
126 In addition, the user may hit the erase character to redisplay the
129 At any time when output is being sent to the terminal, the user can
130 hit the quit key (normally control\-\\).
132 will stop sending output, and will display the usual --More--
134 The user may then enter one of the above commands in the normal manner.
135 Unfortunately, some output is lost when this is done, due to the
136 fact that any characters waiting in the terminal's output queue
137 are flushed when the quit signal occurs.
139 The terminal is set to
141 mode by this program so that the output can be continuous.
142 What you type will thus not show on your terminal, except for the / and !
145 If the standard output is not a teletype, then
149 except that a header is printed before each file.
152 /etc/termcap Terminal data base
154 more(1), less(1), bzip2(1), bzdiff(1), bzgrep(1)