man-pages/man1/zmore.1.html
2021-03-31 01:06:50 +01:00

234 lines
5.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of ZMORE</TITLE>
</HEAD><BODY>
<H1>ZMORE</H1>
Section: User Commands (1)<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
zmore - file perusal filter for crt viewing of compressed text
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>zmore</B>
[ name ... ]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<I>Zmore</I>
is a filter which allows examination of compressed or plain text files
one screenful at a time on a soft-copy terminal.
<I>zmore</I>
works on files compressed with
<I>compress</I>,
<I>pack</I>
or
<I>gzip</I>,
and also on uncompressed files.
If a file does not exist,
<I>zmore</I>
looks for a file of the same name with the addition of a .gz, .z or .Z suffix.
<P>
<I>Zmore</I>
normally pauses after each screenful, printing --More--
at the bottom of the screen.
If the user then types a carriage return, one more line is displayed.
If the user hits a space,
another screenful is displayed. Other possibilities are enumerated later.
<P>
<I>Zmore</I>
looks in the file
<I>/etc/termcap</I>
to determine terminal characteristics,
and to determine the default window size.
On a terminal capable of displaying 24 lines,
the default window size is 22 lines.
To use a pager other than the default
<I>more</I>,
set environment variable PAGER to the name of the desired program, such as
<I>less</I>.
<P>
Other sequences which may be typed when
<I>zmore</I>
pauses, and their effects, are as follows (<I>i</I> is an optional integer
argument, defaulting to 1) :
<P>
<DL COMPACT>
<DT id="1"><I>i</I>&lt;space&gt;<DD>
display
<I>i</I>
more lines, (or another screenful if no argument is given)
</DL>
<P>
<DL COMPACT>
<DT id="2">^D<DD>
display 11 more lines (a ``scroll'').
If
<I>i</I>
is given, then the scroll size is set to <I>i</I>.
</DL>
<P>
<DL COMPACT>
<DT id="3">d<DD>
same as ^D (control-D)
</DL>
<P>
<DL COMPACT>
<DT id="4"><I>i</I>z<DD>
same as typing a space except that <I>i</I>, if present, becomes the new
window size.
</DL>
<P>
<DL COMPACT>
<DT id="5"><I>i</I>s<DD>
skip <I>i</I> lines and print a screenful of lines
</DL>
<P>
<DL COMPACT>
<DT id="6"><I>i</I>f<DD>
skip <I>i</I> screenfuls and print a screenful of lines
</DL>
<P>
<DL COMPACT>
<DT id="7">q or Q<DD>
Quit.
</DL>
<P>
<DL COMPACT>
<DT id="8">=<DD>
Display the current line number.
</DL>
<P>
<DL COMPACT>
<DT id="9"><I>i</I>/expr<DD>
search for the <I>i</I>-th occurrence of the regular expression <I>expr.</I>
The user's erase and kill characters may be used to edit the regular
expression.
Erasing back past the first column cancels the search command.
</DL>
<P>
<DL COMPACT>
<DT id="10"><I>i</I>n<DD>
search for the <I>i</I>-th occurrence of the last regular expression entered.
</DL>
<P>
<DL COMPACT>
<DT id="11">!command<DD>
invoke a shell with <I>command</I>.
The character `!' in &quot;command&quot; is replaced with the
previous shell command. The sequence &quot;\!&quot; is replaced by &quot;!&quot;.
</DL>
<P>
<DL COMPACT>
<DT id="12">:q or :Q<DD>
Quit
(same as q or Q).
</DL>
<P>
<DL COMPACT>
<DT id="13">.<DD>
(dot) repeat the previous command.
</DL>
<P>
The commands take effect immediately, i.e., it is not necessary to
type a carriage return.
Up to the time when the command character itself is given,
the user may hit the line kill character to cancel the numerical
argument being formed.
In addition, the user may hit the erase character to redisplay the
--More-- message.
<P>
At any time when output is being sent to the terminal, the user can
hit the quit key (normally control-\).
<I>Zmore</I>
will stop sending output, and will display the usual --More--
prompt.
The user may then enter one of the above commands in the normal manner.
Unfortunately, some output is lost when this is done, due to the
fact that any characters waiting in the terminal's output queue
are flushed when the quit signal occurs.
<P>
The terminal is set to
<I>noecho</I>
mode by this program so that the output can be continuous.
What you type will thus not show on your terminal, except for the / and !
commands.
<P>
If the standard output is not a teletype, then
<I>zmore</I>
acts just like
<I>zcat</I>,
except that a header is printed before each file
if there is more than one file.
<A NAME="lbAE">&nbsp;</A>
<H2>FILES</H2>
<DL COMPACT>
<DT id="14">/etc/termcap<DD>
Terminal data base
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>SEE ALSO</H2>
<A HREF="/cgi-bin/man/man2html?1+more">more</A>(1), <A HREF="/cgi-bin/man/man2html?1+gzip">gzip</A>(1), <A HREF="/cgi-bin/man/man2html?1+zdiff">zdiff</A>(1), <A HREF="/cgi-bin/man/man2html?1+zgrep">zgrep</A>(1), <A HREF="/cgi-bin/man/man2html?1+znew">znew</A>(1), <A HREF="/cgi-bin/man/man2html?1+zforce">zforce</A>(1), <A HREF="/cgi-bin/man/man2html?1+gzexe">gzexe</A>(1)
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="15"><A HREF="#lbAB">NAME</A><DD>
<DT id="16"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="17"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="18"><A HREF="#lbAE">FILES</A><DD>
<DT id="19"><A HREF="#lbAF">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:31 GMT, March 31, 2021
</BODY>
</HTML>