1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
|
\input texinfo @c -*-texinfo-*-
@c %**start of header
@setfilename zutils.info
@settitle Zutils
@finalout
@c %**end of header
@set UPDATED 13 August 2009
@set VERSION 0.2
@dircategory Data Compression
@direntry
* Zutils: (zutils). Utilities dealing with compressed files
@end direntry
@titlepage
@title Zutils
@subtitle Utilities dealing with compressed files
@subtitle for Zutils version @value{VERSION}, @value{UPDATED}
@author by Antonio Diaz Diaz
@page
@vskip 0pt plus 1filll
@end titlepage
@contents
@node Top
@top
This manual is for Zutils (version @value{VERSION}, @value{UPDATED}).
@menu
* Introduction:: Purpose and features of zutils
* Zcat:: Concatenating compressed files
* Zcmp/Zdiff:: Comparing compressed files
* Zgrep:: Searching inside compressed files
* Problems:: Reporting bugs
* Concept Index:: Index of concepts
@end menu
@sp 1
Copyright @copyright{} 2008, 2009 Antonio Diaz Diaz.
This manual is free documentation: you have unlimited permission
to copy, distribute and modify it.
@node Introduction
@chapter Introduction
@cindex introduction
Zutils is a collection of utilities for dealing with any combination of
compressed and non-compressed files transparently. The supported
compressors are gzip, bzip2, lzip and xz.
The currently provided utilities are zcat, zcmp, zdiff and zgrep.
@node Zcat
@chapter Zcat
@cindex zcat
Zcat is a wrapper script around the cat command that allows transparent
concatenation of any combination of compressed and non-compressed files.
If any given file is compressed, its uncompressed content is used. If a
given file does not exist, zcat tries the compressed file name
corresponding to the default compressor selected. The supported
compressors are gzip, bzip2, lzip and xz.
The format for running zcat is:
@example
zcat [@var{options}] [@var{cat_options}] [@var{files}]
@end example
@noindent
@var{cat_options} are passed directly to cat. The exit status from cat
is preserved.
Zcat supports the following options:
@table @samp
@item --help
@itemx -h
Print an informative help message describing the options and exit.
@item --version
@itemx -V
Print the version number of zcat on the standard output and exit.
@item --gzip
Use gzip as default decompressor.
@item --bzip2
Use bzip2 as default decompressor.
@item --lzip
Use lzip as default decompressor (default).
@item --xz
Use xz as default decompressor.
@end table
@node Zcmp/Zdiff
@chapter Zcmp/Zdiff
@cindex zcmp
@cindex zdiff
Zdiff is a wrapper script around the diff and cmp commands that allows
transparent comparison of any combination of compressed and
non-compressed files. If any given file is compressed, its uncompressed
content is used. The supported compressors are gzip, bzip2, lzip and xz.
@noindent
Zcmp is a shortcut for @samp{zdiff --cmp}
The format for running zdiff is:
@example
zdiff [@var{options}] [@var{diff_options}] @var{file1} [@var{file2}]
@end example
@noindent
Compares @var{file1} to @var{file2}. If @var{file2} is omitted, compares
@var{file1} to the uncompressed contents of @var{file1}.[gz|bz2|lz]
(depending on the default compressor selected). @var{diff_options} are
passed directly to diff or cmp. The exit status from diff or cmp is
preserved.
Zdiff supports the following options:
@table @samp
@item --help
@itemx -h
Print an informative help message describing the options and exit.
@item --version
@itemx -V
Print the version number of zdiff on the standard output and exit.
@item --gzip
Use gzip as default decompressor.
@item --bzip2
Use bzip2 as default decompressor.
@item --lzip
Use lzip as default decompressor (default).
@item --xz
Use xz as default decompressor.
@item --diff
Use diff to compare files (default).
@item --cmp
Use cmp to compare files.
@end table
Zdiff has the limitation that messages from the diff or cmp programs
refer to temporary filenames instead of those specified.
@node Zgrep
@chapter Zgrep
@cindex zgrep
Zgrep is a wrapper script around the grep command that allows
transparent search on any combination of compressed and non-compressed
files. If any given file is compressed, its uncompressed content is
used. If a given file does not exist, zgrep tries the compressed file
name corresponding to the default compressor selected. The supported
compressors are gzip, bzip2, lzip and xz.
The format for running zgrep is:
@example
zgrep [@var{options}] [@var{grep_options}] @var{pattern} [@var{files}]
@end example
@noindent
@var{grep_options} are passed directly to grep. The exit status from
grep is preserved.
Zgrep supports the following options:
@table @samp
@item --help
@itemx -h
Print an informative help message describing the options and exit.
@item --version
@itemx -V
Print the version number of zgrep on the standard output and exit.
@item --gzip
Use gzip as default decompressor.
@item --bzip2
Use bzip2 as default decompressor.
@item --lzip
Use lzip as default decompressor (default).
@item --xz
Use xz as default decompressor.
@end table
@node Problems
@chapter Reporting Bugs
@cindex bugs
@cindex getting help
There are probably bugs in zutils. There are certainly errors and
omissions in this manual. If you report them, they will get fixed. If
you don't, no one will ever know about them and they will remain unfixed
for all eternity, if not longer.
If you find a bug in zutils, please send electronic mail to
@email{lzip-bug@@nongnu.org}. Include the version number, which you can
find by running @w{@samp{zdiff --version}}.
@node Concept Index
@unnumbered Concept Index
@printindex cp
@bye
|