Blame bzmore.1

Packit 71fd91
.\"Shamelessly copied from zmore.1 by Philippe Troin <phil@fifi.org>
Packit 71fd91
.\"for Debian GNU/Linux
Packit 71fd91
.TH BZMORE 1
Packit 71fd91
.SH NAME
Packit 71fd91
bzmore, bzless \- file perusal filter for crt viewing of bzip2 compressed text
Packit 71fd91
.SH SYNOPSIS
Packit 71fd91
.B bzmore
Packit 71fd91
[ name ...  ]
Packit 71fd91
.br
Packit 71fd91
.B bzless
Packit 71fd91
[ name ...  ]
Packit 71fd91
.SH NOTE
Packit 71fd91
In the following description,
Packit 71fd91
.I bzless
Packit 71fd91
and
Packit 71fd91
.I less
Packit 71fd91
can be used interchangeably with
Packit 71fd91
.I bzmore
Packit 71fd91
and
Packit 71fd91
.I more.
Packit 71fd91
.SH DESCRIPTION
Packit 71fd91
.I  Bzmore
Packit 71fd91
is a filter which allows examination of compressed or plain text files
Packit 71fd91
one screenful at a time on a soft-copy terminal.
Packit 71fd91
.I bzmore
Packit 71fd91
works on files compressed with
Packit 71fd91
.I bzip2
Packit 71fd91
and also on uncompressed files.
Packit 71fd91
If a file does not exist,
Packit 71fd91
.I bzmore
Packit 71fd91
looks for a file of the same name with the addition of a .bz2 suffix.
Packit 71fd91
.PP
Packit 71fd91
.I Bzmore
Packit 71fd91
normally pauses after each screenful, printing --More--
Packit 71fd91
at the bottom of the screen.
Packit 71fd91
If the user then types a carriage return, one more line is displayed.
Packit 71fd91
If the user hits a space,
Packit 71fd91
another screenful is displayed.  Other possibilities are enumerated later.
Packit 71fd91
.PP
Packit 71fd91
.I Bzmore
Packit 71fd91
looks in the file
Packit 71fd91
.I /etc/termcap
Packit 71fd91
to determine terminal characteristics,
Packit 71fd91
and to determine the default window size.
Packit 71fd91
On a terminal capable of displaying 24 lines,
Packit 71fd91
the default window size is 22 lines.
Packit 71fd91
Other sequences which may be typed when
Packit 71fd91
.I bzmore
Packit 71fd91
pauses, and their effects, are as follows (\fIi\fP is an optional integer
Packit 71fd91
argument, defaulting to 1) :
Packit 71fd91
.PP
Packit 71fd91
.IP \fIi\|\fP<space>
Packit 71fd91
display
Packit 71fd91
.I i
Packit 71fd91
more lines, (or another screenful if no argument is given)
Packit 71fd91
.PP
Packit 71fd91
.IP ^D
Packit 71fd91
display 11 more lines (a ``scroll'').
Packit 71fd91
If
Packit 71fd91
.I i
Packit 71fd91
is given, then the scroll size is set to \fIi\|\fP.
Packit 71fd91
.PP
Packit 71fd91
.IP d
Packit 71fd91
same as ^D (control-D)
Packit 71fd91
.PP
Packit 71fd91
.IP \fIi\|\fPz
Packit 71fd91
same as typing a space except that \fIi\|\fP, if present, becomes the new
Packit 71fd91
window size.  Note that the window size reverts back to the default at the
Packit 71fd91
end of the current file.
Packit 71fd91
.PP
Packit 71fd91
.IP \fIi\|\fPs
Packit 71fd91
skip \fIi\|\fP lines and print a screenful of lines
Packit 71fd91
.PP
Packit 71fd91
.IP \fIi\|\fPf
Packit 71fd91
skip \fIi\fP screenfuls and print a screenful of lines
Packit 71fd91
.PP
Packit 71fd91
.IP "q or Q"
Packit 71fd91
quit reading the current file; go on to the next (if any)
Packit 71fd91
.PP
Packit 71fd91
.IP "e or q"
Packit 71fd91
When the prompt --More--(Next file: 
Packit 71fd91
.IR file )
Packit 71fd91
is printed, this command causes bzmore to exit.
Packit 71fd91
.PP
Packit 71fd91
.IP s
Packit 71fd91
When the prompt --More--(Next file: 
Packit 71fd91
.IR file )
Packit 71fd91
is printed, this command causes bzmore to skip the next file and continue.
Packit 71fd91
.PP 
Packit 71fd91
.IP =
Packit 71fd91
Display the current line number.
Packit 71fd91
.PP
Packit 71fd91
.IP \fIi\|\fP/expr
Packit 71fd91
search for the \fIi\|\fP-th occurrence of the regular expression \fIexpr.\fP
Packit 71fd91
If the pattern is not found,
Packit 71fd91
.I bzmore
Packit 71fd91
goes on to the next file (if any).
Packit 71fd91
Otherwise, a screenful is displayed, starting two lines before the place
Packit 71fd91
where the expression was found.
Packit 71fd91
The user's erase and kill characters may be used to edit the regular
Packit 71fd91
expression.
Packit 71fd91
Erasing back past the first column cancels the search command.
Packit 71fd91
.PP
Packit 71fd91
.IP \fIi\|\fPn
Packit 71fd91
search for the \fIi\|\fP-th occurrence of the last regular expression entered.
Packit 71fd91
.PP
Packit 71fd91
.IP !command
Packit 71fd91
invoke a shell with \fIcommand\|\fP. 
Packit 71fd91
The character `!' in "command" are replaced with the
Packit 71fd91
previous shell command.  The sequence "\\!" is replaced by "!".
Packit 71fd91
.PP
Packit 71fd91
.IP ":q or :Q"
Packit 71fd91
quit reading the current file; go on to the next (if any)
Packit 71fd91
(same as q or Q).
Packit 71fd91
.PP
Packit 71fd91
.IP .
Packit 71fd91
(dot) repeat the previous command.
Packit 71fd91
.PP
Packit 71fd91
The commands take effect immediately, i.e., it is not necessary to
Packit 71fd91
type a carriage return.
Packit 71fd91
Up to the time when the command character itself is given,
Packit 71fd91
the user may hit the line kill character to cancel the numerical
Packit 71fd91
argument being formed.
Packit 71fd91
In addition, the user may hit the erase character to redisplay the
Packit 71fd91
--More-- message.
Packit 71fd91
.PP
Packit 71fd91
At any time when output is being sent to the terminal, the user can
Packit 71fd91
hit the quit key (normally control\-\\).
Packit 71fd91
.I Bzmore
Packit 71fd91
will stop sending output, and will display the usual --More--
Packit 71fd91
prompt.
Packit 71fd91
The user may then enter one of the above commands in the normal manner.
Packit 71fd91
Unfortunately, some output is lost when this is done, due to the
Packit 71fd91
fact that any characters waiting in the terminal's output queue
Packit 71fd91
are flushed when the quit signal occurs.
Packit 71fd91
.PP
Packit 71fd91
The terminal is set to
Packit 71fd91
.I noecho
Packit 71fd91
mode by this program so that the output can be continuous.
Packit 71fd91
What you type will thus not show on your terminal, except for the / and !
Packit 71fd91
commands.
Packit 71fd91
.PP
Packit 71fd91
If the standard output is not a teletype, then
Packit 71fd91
.I bzmore
Packit 71fd91
acts just like
Packit 71fd91
.I bzcat,
Packit 71fd91
except that a header is printed before each file.
Packit 71fd91
.SH FILES
Packit 71fd91
.DT
Packit 71fd91
/etc/termcap		Terminal data base
Packit 71fd91
.SH "SEE ALSO"
Packit 71fd91
more(1), less(1), bzip2(1), bzdiff(1), bzgrep(1)