xref: /freebsd/usr.bin/gzip/znew.1 (revision 22cf89c938886d14f5796fc49f9f020c23ea8eaf)
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.\"
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.Dd January 26, 2007
18.Dt ZNEW 1
19.Os
20.Sh NAME
21.Nm znew
22.Nd convert compressed files to gzipped files
23.Sh SYNOPSIS
24.Nm
25.Op Fl ftv9K
26.Ar
27.Sh DESCRIPTION
28The
29.Nm
30utility uncompresses files compressed by
31.Xr compress 1
32and recompresses them with
33.Xr gzip 1 .
34.Pp
35The options are as follows:
36.Bl -tag -width Ds
37.It Fl f
38Overwrite existing
39.Sq .gz
40files.
41Unless this option is specified,
42.Nm
43refuses to overwrite existing files.
44.It Fl t
45Test integrity of the gzipped file before deleting the original file.
46If the integrity check fails, the original
47.Sq .Z
48file is not removed.
49.It Fl v
50Print a report specifying the achieved compression ratios.
51.It Fl 9
52Use the -9 mode of
53.Xr gzip 1 ,
54achieving better compression at the cost of slower execution.
55.It Fl K
56Keep the original
57.Sq .Z
58file if it uses less disk blocks than the gzipped one.
59A disk block is 1024 bytes.
60.El
61.Sh SEE ALSO
62.Xr gzip 1
63.Sh CAVEATS
64The
65.Nm
66utility tries to maintain the file mode of the original file.
67If the original file is not writable, it is not able to do that and
68.Nm
69will print a warning.
70