.\" Copyright (c) 2020 Peter Pentchev .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions are met: .\" .\" 1. Redistributions of source code must retain the above copyright notice, .\" this list of conditions and the following disclaimer. .\" .\" 2. Redistributions in binary form must reproduce the above copyright notice, .\" this list of conditions and the following disclaimer in the documentation .\" and/or other materials provided with the distribution. .\" .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" .\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE .\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" .Dd May 31, 2020 .Dt ZCK_GEN_ZDICT 1 .Os .Sh NAME .Nm zck_gen_zdict .Nd extract a dictionary and optionally the separate chunks from a zdict file .Sh SYNOPSIS .Nm .Op Fl d Ar directory | Fl -dir Ns = Ns Ar directory .Op Fl v | Fl -verbose .Ar file .Nm .Fl ? | Fl -help | Fl -usage | Fl -version .Sh DESCRIPTION The .Nm utility reads the specified zchunk file, extracts the dictionary used during the compression, and optionally uncompresses the individual chunks into the specified directory. .Pp The .Nm utility accepts the following optional arguments: .Pp .Bl -tag -width indent .It Fl d , Fl -dir In addition to extracting the dictionary, uncompress the individual chunks as sequential files into the specified directory. .It Fl v , Fl -verbose Verbose operation; display some diagnostic output. .It Fl ? , Fl -help Display program usage information and exit. .It Fl -usage Display brief program usage information and exit. .It Fl -version Display program version information and exit. .El .Sh EXIT STATUS .Ex -std .Sh EXAMPLES Extract a zchunk file's dictionary into the .Pa words.txt.zdict file: .Pp .Dl zck_gen_zdict words.txt.zck .Pp Extract the dictionary into .Pa words.txt.zdict and also the chunks into the .Pa chunks/ directory: .Pp .Dl zck_gen_zdict -d chunks/ words.txt.zck .Pp .Sh SEE ALSO .Xr unzck 1 , .Xr zck 1 , .Xr zck_delta_size 1 , .Xr zck_read_header 1 , .Xr zckdl 1 .Sh AUTHOR The .Nm utility was written by .An Jonathan Dieter Aq jdieter@gmail.com . This manual page stub was written by .An Peter Pentchev Aq roam@ringlet.net .