]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.bin/gzip/znew.1
Remove $FreeBSD$: two-line nroff pattern
[FreeBSD/FreeBSD.git] / usr.bin / gzip / znew.1
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
28 The
29 .Nm
30 utility uncompresses files compressed by
31 .Xr compress 1
32 and recompresses them with
33 .Xr gzip 1 .
34 .Pp
35 The options are as follows:
36 .Bl -tag -width Ds
37 .It Fl f
38 Overwrite existing
39 .Sq .gz
40 files.
41 Unless this option is specified,
42 .Nm
43 refuses to overwrite existing files.
44 .It Fl t
45 Test integrity of the gzipped file before deleting the original file.
46 If the integrity check fails, the original
47 .Sq .Z
48 file is not removed.
49 .It Fl v
50 Print a report specifying the achieved compression ratios.
51 .It Fl 9
52 Use the -9 mode of
53 .Xr gzip 1 ,
54 achieving better compression at the cost of slower execution.
55 .It Fl K
56 Keep the original
57 .Sq .Z
58 file if it uses less disk blocks than the gzipped one.
59 A disk block is 1024 bytes.
60 .El
61 .Sh SEE ALSO
62 .Xr gzip 1
63 .Sh CAVEATS
64 The
65 .Nm
66 utility tries to maintain the file mode of the original file.
67 If the original file is not writable, it is not able to do that and
68 .Nm
69 will print a warning.