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