16ca88057SJohn Marino.\"- 26ca88057SJohn Marino.\" Copyright (c) 2007-2008 Dag-Erling Smørgrav 36ca88057SJohn Marino.\" All rights reserved. 46ca88057SJohn Marino.\" 56ca88057SJohn Marino.\" Redistribution and use in source and binary forms, with or without 66ca88057SJohn Marino.\" modification, are permitted provided that the following conditions 76ca88057SJohn Marino.\" are met: 86ca88057SJohn Marino.\" 1. Redistributions of source code must retain the above copyright 96ca88057SJohn Marino.\" notice, this list of conditions and the following disclaimer. 106ca88057SJohn Marino.\" 2. Redistributions in binary form must reproduce the above copyright 116ca88057SJohn Marino.\" notice, this list of conditions and the following disclaimer in the 126ca88057SJohn Marino.\" documentation and/or other materials provided with the distribution. 136ca88057SJohn Marino.\" 146ca88057SJohn Marino.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 156ca88057SJohn Marino.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 166ca88057SJohn Marino.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 176ca88057SJohn Marino.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 186ca88057SJohn Marino.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 196ca88057SJohn Marino.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 206ca88057SJohn Marino.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 216ca88057SJohn Marino.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 226ca88057SJohn Marino.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 236ca88057SJohn Marino.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 246ca88057SJohn Marino.\" SUCH DAMAGE. 256ca88057SJohn Marino.\" 266ca88057SJohn Marino.\" $FreeBSD: head/usr.bin/unzip/unzip.1 294107 2016-01-15 22:58:23Z ak $ 276ca88057SJohn Marino.\" 286ca88057SJohn Marino.Dd December 12, 2015 296ca88057SJohn Marino.Dt UNZIP 1 306ca88057SJohn Marino.Os 316ca88057SJohn Marino.Sh NAME 326ca88057SJohn Marino.Nm unzip 336ca88057SJohn Marino.Nd extract files from a ZIP archive 346ca88057SJohn Marino.Sh SYNOPSIS 356ca88057SJohn Marino.Nm 366ca88057SJohn Marino.Op Fl aCcfjLlnopqtuvy 376ca88057SJohn Marino.Op Fl d Ar dir 386ca88057SJohn Marino.Ar zipfile 396ca88057SJohn Marino.Sh DESCRIPTION 406ca88057SJohn Marino.\" ... 416ca88057SJohn MarinoThe following options are available: 426ca88057SJohn Marino.Bl -tag -width Fl 436ca88057SJohn Marino.It Fl a 446ca88057SJohn MarinoWhen extracting a text file, convert DOS-style line endings to 456ca88057SJohn MarinoUnix-style line endings. 466ca88057SJohn Marino.It Fl C 476ca88057SJohn MarinoMatch file names case-insensitively. 486ca88057SJohn Marino.It Fl c 496ca88057SJohn MarinoExtract to stdout/screen. 506ca88057SJohn MarinoWhen extracting files from the zipfile, they are written to stdout. 516ca88057SJohn MarinoThis is similar to 526ca88057SJohn Marino.Fl p , 536ca88057SJohn Marinobut does not suppress normal output. 546ca88057SJohn Marino.It Fl d Ar dir 556ca88057SJohn MarinoExtract files into the specified directory rather than the current 566ca88057SJohn Marinodirectory. 576ca88057SJohn Marino.It Fl f 586ca88057SJohn MarinoUpdate existing. 596ca88057SJohn MarinoExtract only files from the zipfile if a file with the same name 606ca88057SJohn Marinoalready exists on disk and is older than the former. 616ca88057SJohn MarinoOtherwise, the file is silently skipped. 626ca88057SJohn Marino.It Fl j 636ca88057SJohn MarinoIgnore directories stored in the zipfile; instead, extract all files 646ca88057SJohn Marinodirectly into the extraction directory. 656ca88057SJohn Marino.It Fl L 666ca88057SJohn MarinoConvert the names of the extracted files and directories to lowercase. 676ca88057SJohn Marino.It Fl l 686ca88057SJohn MarinoList, rather than extract, the contents of the zipfile. 696ca88057SJohn Marino.It Fl n 706ca88057SJohn MarinoNo overwrite. 716ca88057SJohn MarinoWhen extracting a file from the zipfile, if a file with the same name 726ca88057SJohn Marinoalready exists on disk, the file is silently skipped. 736ca88057SJohn Marino.It Fl o 746ca88057SJohn MarinoOverwrite. 756ca88057SJohn MarinoWhen extracting a file from the zipfile, if a file with the same name 766ca88057SJohn Marinoalready exists on disk, the existing file is replaced with the file 776ca88057SJohn Marinofrom the zipfile. 786ca88057SJohn Marino.It Fl p 796ca88057SJohn MarinoExtract to stdout. 806ca88057SJohn MarinoWhen extracting files from the zipfile, they are written to stdout. 816ca88057SJohn MarinoThe normal output is suppressed as if 826ca88057SJohn Marino.Fl q 836ca88057SJohn Marinowas specified. 846ca88057SJohn Marino.It Fl q 856ca88057SJohn MarinoQuiet: print less information while extracting. 866ca88057SJohn Marino.It Fl t 876ca88057SJohn MarinoTest: do not extract anything, but verify the checksum of every file 886ca88057SJohn Marinoin the archive. 896ca88057SJohn Marino.It Fl u 906ca88057SJohn MarinoUpdate. 916ca88057SJohn MarinoWhen extracting a file from the zipfile, if a file with the same name 926ca88057SJohn Marinoalready exists on disk, the existing file is replaced with the file 936ca88057SJohn Marinofrom the zipfile if and only if the latter is newer than the former. 946ca88057SJohn MarinoOtherwise, the file is silently skipped. 956ca88057SJohn Marino.It Fl v 966ca88057SJohn MarinoList verbosely, rather than extract, the contents of the zipfile. 976ca88057SJohn MarinoThis differs from 986ca88057SJohn Marino.Fl l 996ca88057SJohn Marinoby using the long listing. 1006ca88057SJohn MarinoNote that most of the data is currently fake and does not reflect the 1016ca88057SJohn Marinocontent of the archive. 1026ca88057SJohn Marino.It Fl x Ar pattern 1036ca88057SJohn MarinoExclude files matching the pattern 1046ca88057SJohn Marino.Ar pattern . 1056ca88057SJohn Marino.It Fl y 1066ca88057SJohn MarinoPrint four digit years in listings instead of two. 1076ca88057SJohn Marino.It Fl Z Ar mode 1086ca88057SJohn MarinoEmulate 1096ca88057SJohn Marino.Xr zipinfo 1L 1106ca88057SJohn Marinomode. 1116ca88057SJohn MarinoEnabling 1126ca88057SJohn Marino.Xr zipinfo 1L 1136ca88057SJohn Marinomode changes the way in which additional arguments are parsed. 1146ca88057SJohn MarinoCurrently only 1156ca88057SJohn Marino.Xr zipinfo 1L 1166ca88057SJohn Marinomode 1 is supported, which lists the file names one per line. 1176ca88057SJohn Marino.El 1186ca88057SJohn Marino.Pp 1196ca88057SJohn MarinoNote that only one of 1206ca88057SJohn Marino.Fl n , 1216ca88057SJohn Marino.Fl o , 1226ca88057SJohn Marinoand 1236ca88057SJohn Marino.Fl u 1246ca88057SJohn Marinomay be specified. 1256ca88057SJohn MarinoIf specified filename is 1266ca88057SJohn Marino.Qq - , 1276ca88057SJohn Marinothen data is read from 1286ca88057SJohn Marino.Va stdin . 1296ca88057SJohn Marino.Sh ENVIRONMENT 1306ca88057SJohn MarinoIf the 1316ca88057SJohn Marino.Ev UNZIP_DEBUG 1326ca88057SJohn Marinoenvironment variable is defined, the 1336ca88057SJohn Marino.Fl q 1346ca88057SJohn Marinocommand-line option has no effect, and additional debugging 1356ca88057SJohn Marinoinformation will be printed to 1366ca88057SJohn Marino.Va stderr . 1376ca88057SJohn Marino.Sh COMPATIBILITY 1386ca88057SJohn MarinoThe 1396ca88057SJohn Marino.Nm 1406ca88057SJohn Marinoutility aims to be sufficiently compatible with other implementations 1416ca88057SJohn Marinoto serve as a drop-in replacement in the context of the 1426ca88057SJohn Marino.Xr ports 7 1436ca88057SJohn Marinosystem. 1446ca88057SJohn MarinoNo attempt has been made to replicate functionality which is not 1456ca88057SJohn Marinorequired for that purpose. 1466ca88057SJohn Marino.Pp 1476ca88057SJohn MarinoFor compatibility reasons, command-line options will be recognized if 1486ca88057SJohn Marinothey are listed not only before but also after the name of the 1496ca88057SJohn Marinozipfile. 1506ca88057SJohn Marino.Pp 1516ca88057SJohn MarinoNormally, the 1526ca88057SJohn Marino.Fl a 1536ca88057SJohn Marinooption should only affect files which are marked as text files in the 1546ca88057SJohn Marinozipfile's central directory. 1556ca88057SJohn MarinoSince the 1566ca88057SJohn Marino.Xr archive 3 1576ca88057SJohn Marinolibrary does not provide access to that information, it is not available 1586ca88057SJohn Marinoto the 1596ca88057SJohn Marino.Nm 1606ca88057SJohn Marinoutility. 1616ca88057SJohn MarinoInstead, the 1626ca88057SJohn Marino.Nm 1636ca88057SJohn Marinoutility will assume that a file is a text file if no non-ASCII 1646ca88057SJohn Marinocharacters are present within the first block of data decompressed for 1656ca88057SJohn Marinothat file. 1666ca88057SJohn MarinoIf non-ASCII characters appear in subsequent blocks of data, a warning 1676ca88057SJohn Marinowill be issued. 1686ca88057SJohn Marino.Pp 1696ca88057SJohn MarinoThe 1706ca88057SJohn Marino.Nm 1716ca88057SJohn Marinoutility is only able to process ZIP archives handled by 1726ca88057SJohn Marino.Xr libarchive 3 . 1736ca88057SJohn MarinoDepending on the installed version of 174*6700dd34SSascha Wildner.Xr libarchive 3 , 1756ca88057SJohn Marinothis may or may not include self-extracting archives. 1766ca88057SJohn Marino.Sh SEE ALSO 1776ca88057SJohn Marino.Xr libarchive 3 1786ca88057SJohn Marino.Sh HISTORY 1796ca88057SJohn MarinoThe 1806ca88057SJohn Marino.Nm 1816ca88057SJohn Marinoutility appeared in 1826ca88057SJohn Marino.Fx 8.0 1836ca88057SJohn Marinoand 1846ca88057SJohn Marino.Dx 4.5 . 1856ca88057SJohn Marino.Sh AUTHORS 1866ca88057SJohn MarinoThe 1876ca88057SJohn Marino.Nm 1886ca88057SJohn Marinoutility and this manual page were written by 1896ca88057SJohn Marino.An Dag-Erling Sm\(/orgrav Aq Mt des@FreeBSD.org . 1906ca88057SJohn MarinoIt uses the 1916ca88057SJohn Marino.Xr archive 3 1926ca88057SJohn Marinolibrary developed by 1936ca88057SJohn Marino.An Tim Kientzle Aq Mt kientzle@FreeBSD.org . 194