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.\" 189a9ea25fSXin LI.\" $FreeBSD$ 199a9ea25fSXin LI.Dd January 26, 2007 209a9ea25fSXin LI.Dt ZNEW 1 219a9ea25fSXin LI.Os 229a9ea25fSXin LI.Sh NAME 239a9ea25fSXin LI.Nm znew 249a9ea25fSXin LI.Nd convert compressed files to gzipped files 259a9ea25fSXin LI.Sh SYNOPSIS 269a9ea25fSXin LI.Nm 279a9ea25fSXin LI.Op Fl ftv9K 289a9ea25fSXin LI.Ar 299a9ea25fSXin LI.Sh DESCRIPTION 309a9ea25fSXin LIThe 319a9ea25fSXin LI.Nm 329a9ea25fSXin LIutility uncompresses files compressed by 339a9ea25fSXin LI.Xr compress 1 349a9ea25fSXin LIand recompresses them with 359a9ea25fSXin LI.Xr gzip 1 . 369a9ea25fSXin LI.Pp 379a9ea25fSXin LIThe options are as follows: 389a9ea25fSXin LI.Bl -tag -width Ds 399a9ea25fSXin LI.It Fl f 409a9ea25fSXin LIOverwrite existing 419a9ea25fSXin LI.Sq .gz 429a9ea25fSXin LIfiles. 439a9ea25fSXin LIUnless this option is specified, 449a9ea25fSXin LI.Nm 459a9ea25fSXin LIrefuses to overwrite existing files. 469a9ea25fSXin LI.It Fl t 479a9ea25fSXin LITest integrity of the gzipped file before deleting the original file. 489a9ea25fSXin LIIf the integrity check fails, the original 499a9ea25fSXin LI.Sq .Z 509a9ea25fSXin LIfile is not removed. 519a9ea25fSXin LI.It Fl v 529a9ea25fSXin LIPrint a report specifying the achieved compression ratios. 539a9ea25fSXin LI.It Fl 9 549a9ea25fSXin LIUse the -9 mode of 559a9ea25fSXin LI.Xr gzip 1 , 569a9ea25fSXin LIachieving better compression at the cost of slower execution. 579a9ea25fSXin LI.It Fl K 589a9ea25fSXin LIKeep the original 599a9ea25fSXin LI.Sq .Z 609a9ea25fSXin LIfile if it uses less disk blocks than the gzipped one. 619a9ea25fSXin LIA disk block is 1024 bytes. 629a9ea25fSXin LI.El 639a9ea25fSXin LI.Sh SEE ALSO 649a9ea25fSXin LI.Xr gzip 1 659a9ea25fSXin LI.Sh CAVEATS 669a9ea25fSXin LIThe 679a9ea25fSXin LI.Nm 689a9ea25fSXin LIutility tries to maintain the file mode of the original file. 699a9ea25fSXin LIIf the original file is not writable, it is not able to do that and 709a9ea25fSXin LI.Nm 719a9ea25fSXin LIwill print a warning. 72