Merge from vendor branch PKGSRC:
[netbsd-mini2440.git] / usr.bin / gzip / znew.1
blobcd1259d98e479a198306ebccc77a364ddec52e70
1 .\"     $NetBSD$
2 .\"     $OpenBSD: znew.1,v 1.1 2003/08/02 20:52:50 otto Exp $
3 .\"
4 .\" Copyright (c) 2003 Otto Moerbeek <otto@drijf.net>
5 .\"
6 .\" Permission to use, copy, modify, and distribute this software for any
7 .\" purpose with or without fee is hereby granted, provided that the above
8 .\" copyright notice and this permission notice appear in all copies.
9 .\"
10 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 .\"
18 .Dd August 1, 2003
19 .Dt ZNEW 1
20 .Os
21 .Sh NAME
22 .Nm znew
23 .Nd convert compressed files to gzipped files
24 .Sh SYNOPSIS
25 .Nm
26 .Op Fl ftv9K
27 .Ar
28 .Sh DESCRIPTION
29 The
30 .Nm
31 utility uncompresses files compressed by
32 .Xr compress 1
33 and recompresses them with
34 .Xr gzip 1 .
35 .Pp
36 The options are as follows:
37 .Bl -tag -width Ds
38 .It Fl f
39 Overwrite existing
40 .Sq .gz
41 files.
42 Unless this option is specified,
43 .Nm
44 refuses to overwrite existing files.
45 .It Fl t
46 Test integrity of the gzipped file before deleting the original file.
47 If the integrity check fails, the original
48 .Sq .Z
49 file is not removed.
50 .It Fl v
51 Print a report specifying the achieved compression ratios.
52 .It Fl 9
53 Use the -9 mode of
54 .Xr gzip 1 ,
55 achieving better compression at the cost of slower execution.
56 .It Fl K
57 Keep the original
58 .Sq .Z
59 file if it uses less disk blocks than the gzipped one.
60 A disk block is 1024 bytes.
61 .El
62 .Sh SEE ALSO
63 .Xr gzip 1
64 .Sh CAVEATS
65 The
66 .Nm
67 utility tries to maintain the file mode of the original file.
68 If the original file is not writable, it is not able to do that and
69 .Nm
70 will print a warning.