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