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