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