xref: /openbsd-src/usr.bin/compress/znew.1 (revision 9490d37cb6a2f9c8feb8d4b7f9c43b2ac41784aa)
1*9490d37cSjmc.\"	$OpenBSD: znew.1,v 1.4 2007/05/31 19:20:09 jmc Exp $
28633513cSotto.\"
38633513cSotto.\" Copyright (c) 2003 Otto Moerbeek <otto@drijf.net>
48633513cSotto.\"
58633513cSotto.\" Permission to use, copy, modify, and distribute this software for any
68633513cSotto.\" purpose with or without fee is hereby granted, provided that the above
78633513cSotto.\" copyright notice and this permission notice appear in all copies.
88633513cSotto.\"
98633513cSotto.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
108633513cSotto.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
118633513cSotto.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
128633513cSotto.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
138633513cSotto.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
148633513cSotto.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
158633513cSotto.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
168633513cSotto.\"
17*9490d37cSjmc.Dd $Mdocdate: May 31 2007 $
188633513cSotto.Dt ZNEW 1
198633513cSotto.Os
208633513cSotto.Sh NAME
218633513cSotto.Nm znew
228633513cSotto.Nd convert compressed files to gzipped files
238633513cSotto.Sh SYNOPSIS
248633513cSotto.Nm
2555c52b07Sjmc.Op Fl 9fKtv
268633513cSotto.Ar
278633513cSotto.Sh DESCRIPTION
288633513cSottoThe
298633513cSotto.Nm
308633513cSottoutility uncompresses files compressed by
318633513cSotto.Xr compress 1
328633513cSottoand recompresses them with
338633513cSotto.Xr gzip 1 .
348633513cSotto.Pp
358633513cSottoThe options are as follows:
368633513cSotto.Bl -tag -width Ds
3755c52b07Sjmc.It Fl 9
3855c52b07SjmcUse the -9 mode of
3955c52b07Sjmc.Xr gzip 1 ,
4055c52b07Sjmcachieving better compression at the cost of slower execution.
418633513cSotto.It Fl f
428633513cSottoOverwrite existing
438633513cSotto.Sq .gz
448633513cSottofiles.
458633513cSottoUnless this option is specified,
468633513cSotto.Nm
478633513cSottorefuses to overwrite existing files.
4855c52b07Sjmc.It Fl K
4955c52b07SjmcKeep the original
5055c52b07Sjmc.Sq .Z
5155c52b07Sjmcfile if it uses less disk blocks than the gzipped one.
5255c52b07SjmcA disk block is 1024 bytes.
538633513cSotto.It Fl t
548633513cSottoTest integrity of the gzipped file before deleting the original file.
558633513cSottoIf the integrity check fails, the original
568633513cSotto.Sq .Z
578633513cSottofile is not removed.
588633513cSotto.It Fl v
598633513cSottoPrint a report specifying the achieved compression ratios.
608633513cSotto.El
618633513cSotto.Sh SEE ALSO
623a68a017Sjmc.Xr compress 1 ,
638633513cSotto.Xr gzip 1
648633513cSotto.Sh CAVEATS
658633513cSottoThe
668633513cSotto.Nm
678633513cSottoutility tries to maintain the file mode of the original file.
6855c52b07SjmcIf the original file is not writable, it will be unable to do so and
698633513cSotto.Nm
708633513cSottowill print a warning.
71