19a9ea25fSXin LI.\" $NetBSD: znew.1,v 1.2 2003/12/28 12:43:43 wiz Exp $ 29a9ea25fSXin LI.\" $OpenBSD: znew.1,v 1.1 2003/08/02 20:52:50 otto Exp $ 39a9ea25fSXin LI.\" 49a9ea25fSXin LI.\" Copyright (c) 2003 Otto Moerbeek <otto@drijf.net> 59a9ea25fSXin LI.\" 69a9ea25fSXin LI.\" Permission to use, copy, modify, and distribute this software for any 79a9ea25fSXin LI.\" purpose with or without fee is hereby granted, provided that the above 89a9ea25fSXin LI.\" copyright notice and this permission notice appear in all copies. 99a9ea25fSXin LI.\" 109a9ea25fSXin LI.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 119a9ea25fSXin LI.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 129a9ea25fSXin LI.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 139a9ea25fSXin LI.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 149a9ea25fSXin LI.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 159a9ea25fSXin LI.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 169a9ea25fSXin LI.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 179a9ea25fSXin LI.Dd January 26, 2007 189a9ea25fSXin LI.Dt ZNEW 1 199a9ea25fSXin LI.Os 209a9ea25fSXin LI.Sh NAME 219a9ea25fSXin LI.Nm znew 229a9ea25fSXin LI.Nd convert compressed files to gzipped files 239a9ea25fSXin LI.Sh SYNOPSIS 249a9ea25fSXin LI.Nm 259a9ea25fSXin LI.Op Fl ftv9K 269a9ea25fSXin LI.Ar 279a9ea25fSXin LI.Sh DESCRIPTION 289a9ea25fSXin LIThe 299a9ea25fSXin LI.Nm 309a9ea25fSXin LIutility uncompresses files compressed by 319a9ea25fSXin LI.Xr compress 1 329a9ea25fSXin LIand recompresses them with 339a9ea25fSXin LI.Xr gzip 1 . 349a9ea25fSXin LI.Pp 359a9ea25fSXin LIThe options are as follows: 369a9ea25fSXin LI.Bl -tag -width Ds 379a9ea25fSXin LI.It Fl f 389a9ea25fSXin LIOverwrite existing 399a9ea25fSXin LI.Sq .gz 409a9ea25fSXin LIfiles. 419a9ea25fSXin LIUnless this option is specified, 429a9ea25fSXin LI.Nm 439a9ea25fSXin LIrefuses to overwrite existing files. 449a9ea25fSXin LI.It Fl t 459a9ea25fSXin LITest integrity of the gzipped file before deleting the original file. 469a9ea25fSXin LIIf the integrity check fails, the original 479a9ea25fSXin LI.Sq .Z 489a9ea25fSXin LIfile is not removed. 499a9ea25fSXin LI.It Fl v 509a9ea25fSXin LIPrint a report specifying the achieved compression ratios. 519a9ea25fSXin LI.It Fl 9 529a9ea25fSXin LIUse the -9 mode of 539a9ea25fSXin LI.Xr gzip 1 , 549a9ea25fSXin LIachieving better compression at the cost of slower execution. 559a9ea25fSXin LI.It Fl K 569a9ea25fSXin LIKeep the original 579a9ea25fSXin LI.Sq .Z 589a9ea25fSXin LIfile if it uses less disk blocks than the gzipped one. 599a9ea25fSXin LIA disk block is 1024 bytes. 609a9ea25fSXin LI.El 619a9ea25fSXin LI.Sh SEE ALSO 629a9ea25fSXin LI.Xr gzip 1 639a9ea25fSXin LI.Sh CAVEATS 649a9ea25fSXin LIThe 659a9ea25fSXin LI.Nm 669a9ea25fSXin LIutility tries to maintain the file mode of the original file. 679a9ea25fSXin LIIf the original file is not writable, it is not able to do that and 689a9ea25fSXin LI.Nm 699a9ea25fSXin LIwill print a warning. 70