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