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