BSD 4_4_Lite2 development
[unix-history] / usr / src / contrib / gzip-1.2.4 / zmore.1
CommitLineData
974d4ede
C
1.TH ZMORE 1
2.SH NAME
3zmore \- file perusal filter for crt viewing of compressed text
4.SH SYNOPSIS
5.B zmore
6[ name ... ]
7.SH DESCRIPTION
8.I Zmore
9is a filter which allows examination of compressed or plain text files
10one screenful at a time on a soft-copy terminal.
11.I zmore
12works on files compressed with
13.I compress, pack
14or
15.I gzip,
16and also on uncompressed files.
17If a file does not exist,
18.I zmore
19looks for a file of the same name with the addition of a .gz, .z or .Z suffix.
20.PP
21.I Zmore
22normally pauses after each screenful, printing --More--
23at the bottom of the screen.
24If the user then types a carriage return, one more line is displayed.
25If the user hits a space,
26another screenful is displayed. Other possibilities are enumerated later.
27.PP
28.I Zmore
29looks in the file
30.I /etc/termcap
31to determine terminal characteristics,
32and to determine the default window size.
33On a terminal capable of displaying 24 lines,
34the default window size is 22 lines.
35To use a pager other than the default
36.I more,
37set environment variable PAGER to the name of the desired program, such as
38.I less.
39.PP
40Other sequences which may be typed when
41.I zmore
42pauses, and their effects, are as follows (\fIi\fP is an optional integer
43argument, defaulting to 1) :
44.PP
45.IP \fIi\|\fP<space>
46display
47.I i
48more lines, (or another screenful if no argument is given)
49.PP
50.IP ^D
51display 11 more lines (a ``scroll'').
52If
53.I i
54is given, then the scroll size is set to \fIi\|\fP.
55.PP
56.IP d
57same as ^D (control-D)
58.PP
59.IP \fIi\|\fPz
60same as typing a space except that \fIi\|\fP, if present, becomes the new
61window size. Note that the window size reverts back to the default at the
62end of the current file.
63.PP
64.IP \fIi\|\fPs
65skip \fIi\|\fP lines and print a screenful of lines
66.PP
67.IP \fIi\|\fPf
68skip \fIi\fP screenfuls and print a screenful of lines
69.PP
70.IP "q or Q"
71quit reading the current file; go on to the next (if any)
72.PP
73.IP "e or q"
74When the prompt --More--(Next file:
75.IR file )
76is printed, this command causes zmore to exit.
77.PP
78.IP s
79When the prompt --More--(Next file:
80.IR file )
81is printed, this command causes zmore to skip the next file and continue.
82.PP
83.IP =
84Display the current line number.
85.PP
86.IP \fIi\|\fP/expr
87search for the \fIi\|\fP-th occurrence of the regular expression \fIexpr.\fP
88If the pattern is not found,
89.I zmore
90goes on to the next file (if any).
91Otherwise, a screenful is displayed, starting two lines before the place
92where the expression was found.
93The user's erase and kill characters may be used to edit the regular
94expression.
95Erasing back past the first column cancels the search command.
96.PP
97.IP \fIi\|\fPn
98search for the \fIi\|\fP-th occurrence of the last regular expression entered.
99.PP
100.IP !command
101invoke a shell with \fIcommand\|\fP.
102The character `!' in "command" are replaced with the
103previous shell command. The sequence "\\!" is replaced by "!".
104.PP
105.IP ":q or :Q"
106quit reading the current file; go on to the next (if any)
107(same as q or Q).
108.PP
109.IP .
110(dot) repeat the previous command.
111.PP
112The commands take effect immediately, i.e., it is not necessary to
113type a carriage return.
114Up to the time when the command character itself is given,
115the user may hit the line kill character to cancel the numerical
116argument being formed.
117In addition, the user may hit the erase character to redisplay the
118--More-- message.
119.PP
120At any time when output is being sent to the terminal, the user can
121hit the quit key (normally control\-\\).
122.I Zmore
123will stop sending output, and will display the usual --More--
124prompt.
125The user may then enter one of the above commands in the normal manner.
126Unfortunately, some output is lost when this is done, due to the
127fact that any characters waiting in the terminal's output queue
128are flushed when the quit signal occurs.
129.PP
130The terminal is set to
131.I noecho
132mode by this program so that the output can be continuous.
133What you type will thus not show on your terminal, except for the / and !
134commands.
135.PP
136If the standard output is not a teletype, then
137.I zmore
138acts just like
139.I zcat,
140except that a header is printed before each file.
141.SH FILES
142.DT
143/etc/termcap Terminal data base
144.SH "SEE ALSO"
145more(1), gzip(1), zdiff(1), zgrep(1), znew(1), zforce(1), gzexe(1)