home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 75 6e 69 78 0a 46 72 |.sources|.unix.Fr|
|00000020| 6f 6d 3a 20 6d 61 64 6c | 65 72 40 63 63 6f 2e 63 |om: madl|er@cco.c|
|00000030| 61 6c 74 65 63 68 2e 65 | 64 75 20 28 4d 61 72 6b |altech.e|du (Mark|
|00000040| 20 41 64 6c 65 72 29 0a | 53 75 62 6a 65 63 74 3a | Adler).|Subject:|
|00000050| 20 76 32 35 69 31 34 34 | 3a 20 7a 69 70 20 2d 20 | v25i144|: zip - |
|00000060| 66 69 6c 65 20 63 6f 6d | 70 72 65 73 73 69 6f 6e |file com|pression|
|00000070| 2f 61 72 63 68 69 76 65 | 20 74 6f 6f 6c 2c 20 50 |/archive| tool, P|
|00000080| 61 72 74 30 33 2f 30 37 | 0a 53 65 6e 64 65 72 3a |art03/07|.Sender:|
|00000090| 20 75 6e 69 78 2d 73 6f | 75 72 63 65 73 2d 6d 6f | unix-so|urces-mo|
|000000a0| 64 65 72 61 74 6f 72 40 | 70 61 2e 64 65 63 2e 63 |derator@|pa.dec.c|
|000000b0| 6f 6d 0a 41 70 70 72 6f | 76 65 64 3a 20 76 69 78 |om.Appro|ved: vix|
|000000c0| 69 65 40 70 61 2e 64 65 | 63 2e 63 6f 6d 0a 0a 53 |ie@pa.de|c.com..S|
|000000d0| 75 62 6d 69 74 74 65 64 | 2d 42 79 3a 20 6d 61 64 |ubmitted|-By: mad|
|000000e0| 6c 65 72 40 63 63 6f 2e | 63 61 6c 74 65 63 68 2e |ler@cco.|caltech.|
|000000f0| 65 64 75 20 28 4d 61 72 | 6b 20 41 64 6c 65 72 29 |edu (Mar|k Adler)|
|00000100| 0a 50 6f 73 74 69 6e 67 | 2d 4e 75 6d 62 65 72 3a |.Posting|-Number:|
|00000110| 20 56 6f 6c 75 6d 65 20 | 32 35 2c 20 49 73 73 75 | Volume |25, Issu|
|00000120| 65 20 31 34 34 0a 41 72 | 63 68 69 76 65 2d 4e 61 |e 144.Ar|chive-Na|
|00000130| 6d 65 3a 20 7a 69 70 2f | 70 61 72 74 30 33 0a 0a |me: zip/|part03..|
|00000140| 23 21 20 2f 62 69 6e 2f | 73 68 0a 23 20 54 68 69 |#! /bin/|sh.# Thi|
|00000150| 73 20 69 73 20 61 20 73 | 68 65 6c 6c 20 61 72 63 |s is a s|hell arc|
|00000160| 68 69 76 65 2e 20 20 52 | 65 6d 6f 76 65 20 61 6e |hive. R|emove an|
|00000170| 79 74 68 69 6e 67 20 62 | 65 66 6f 72 65 20 74 68 |ything b|efore th|
|00000180| 69 73 20 6c 69 6e 65 2c | 20 74 68 65 6e 20 75 6e |is line,| then un|
|00000190| 70 61 63 6b 0a 23 20 69 | 74 20 62 79 20 73 61 76 |pack.# i|t by sav|
|000001a0| 69 6e 67 20 69 74 20 69 | 6e 74 6f 20 61 20 66 69 |ing it i|nto a fi|
|000001b0| 6c 65 20 61 6e 64 20 74 | 79 70 69 6e 67 20 22 73 |le and t|yping "s|
|000001c0| 68 20 66 69 6c 65 22 2e | 20 20 54 6f 20 6f 76 65 |h file".| To ove|
|000001d0| 72 77 72 69 74 65 20 65 | 78 69 73 74 69 6e 67 0a |rwrite e|xisting.|
|000001e0| 23 20 66 69 6c 65 73 2c | 20 74 79 70 65 20 22 73 |# files,| type "s|
|000001f0| 68 20 66 69 6c 65 20 2d | 63 22 2e 20 20 59 6f 75 |h file -|c". You|
|00000200| 20 63 61 6e 20 61 6c 73 | 6f 20 66 65 65 64 20 74 | can als|o feed t|
|00000210| 68 69 73 20 61 73 20 73 | 74 61 6e 64 61 72 64 20 |his as s|tandard |
|00000220| 69 6e 70 75 74 20 76 69 | 61 0a 23 20 75 6e 73 68 |input vi|a.# unsh|
|00000230| 61 72 2c 20 6f 72 20 62 | 79 20 74 79 70 69 6e 67 |ar, or b|y typing|
|00000240| 20 22 73 68 20 3c 66 69 | 6c 65 22 2c 20 65 2e 67 | "sh <fi|le", e.g|
|00000250| 2e 2e 20 20 49 66 20 74 | 68 69 73 20 61 72 63 68 |.. If t|his arch|
|00000260| 69 76 65 20 69 73 20 63 | 6f 6d 70 6c 65 74 65 2c |ive is c|omplete,|
|00000270| 20 79 6f 75 0a 23 20 77 | 69 6c 6c 20 73 65 65 20 | you.# w|ill see |
|00000280| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6d 65 |the foll|owing me|
|00000290| 73 73 61 67 65 20 61 74 | 20 74 68 65 20 65 6e 64 |ssage at| the end|
|000002a0| 3a 0a 23 09 09 22 45 6e | 64 20 6f 66 20 61 72 63 |:.#.."En|d of arc|
|000002b0| 68 69 76 65 20 33 20 28 | 6f 66 20 37 29 2e 22 0a |hive 3 (|of 7).".|
|000002c0| 23 20 43 6f 6e 74 65 6e | 74 73 3a 20 20 7a 69 70 |# Conten|ts: zip|
|000002d0| 2e 31 20 7a 69 70 66 69 | 6c 65 2e 63 20 7a 69 70 |.1 zipfi|le.c zip|
|000002e0| 73 70 6c 69 74 2e 63 0a | 23 20 57 72 61 70 70 65 |split.c.|# Wrappe|
|000002f0| 64 20 62 79 20 76 69 78 | 69 65 40 63 6f 67 6e 69 |d by vix|ie@cogni|
|00000300| 74 69 6f 6e 2e 70 61 2e | 64 65 63 2e 63 6f 6d 20 |tion.pa.|dec.com |
|00000310| 6f 6e 20 53 75 6e 20 4d | 61 72 20 20 31 20 31 38 |on Sun M|ar 1 18|
|00000320| 3a 35 37 3a 33 38 20 31 | 39 39 32 0a 50 41 54 48 |:57:38 1|992.PATH|
|00000330| 3d 2f 62 69 6e 3a 2f 75 | 73 72 2f 62 69 6e 3a 2f |=/bin:/u|sr/bin:/|
|00000340| 75 73 72 2f 75 63 62 20 | 3b 20 65 78 70 6f 72 74 |usr/ucb |; export|
|00000350| 20 50 41 54 48 0a 69 66 | 20 74 65 73 74 20 2d 66 | PATH.if| test -f|
|00000360| 20 27 7a 69 70 2e 31 27 | 20 2d 61 20 22 24 7b 31 | 'zip.1'| -a "${1|
|00000370| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|00000380| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|00000390| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|000003a0| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|000003b0| 22 27 7a 69 70 2e 31 27 | 5c 22 0a 65 6c 73 65 0a |"'zip.1'|\".else.|
|000003c0| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|000003d0| 63 74 69 6e 67 20 5c 22 | 27 7a 69 70 2e 31 27 5c |cting \"|'zip.1'\|
|000003e0| 22 20 5c 28 32 31 36 31 | 31 20 63 68 61 72 61 63 |" \(2161|1 charac|
|000003f0| 74 65 72 73 5c 29 0a 73 | 65 64 20 22 73 2f 5e 58 |ters\).s|ed "s/^X|
|00000400| 2f 2f 22 20 3e 27 7a 69 | 70 2e 31 27 20 3c 3c 27 |//" >'zi|p.1' <<'|
|00000410| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 2e 5c |END_OF_F|ILE'.X.\|
|00000420| 22 20 43 6f 70 79 72 69 | 67 68 74 20 28 43 29 20 |" Copyri|ght (C) |
|00000430| 31 39 39 30 2c 31 39 39 | 31 20 4d 61 72 6b 20 41 |1990,199|1 Mark A|
|00000440| 64 6c 65 72 2c 20 52 69 | 63 68 61 72 64 20 42 2e |dler, Ri|chard B.|
|00000450| 20 57 61 6c 65 73 2c 20 | 61 6e 64 20 4a 65 61 6e | Wales, |and Jean|
|00000460| 2d 6c 6f 75 70 20 47 61 | 69 6c 6c 79 2e 0a 58 2e |-loup Ga|illy..X.|
|00000470| 5c 22 20 50 65 72 6d 69 | 73 73 69 6f 6e 20 69 73 |\" Permi|ssion is|
|00000480| 20 67 72 61 6e 74 65 64 | 20 74 6f 20 61 6e 79 20 | granted| to any |
|00000490| 69 6e 64 69 76 69 64 75 | 61 6c 20 6f 72 20 69 6e |individu|al or in|
|000004a0| 73 74 69 74 75 74 69 6f | 6e 20 74 6f 20 75 73 65 |stitutio|n to use|
|000004b0| 2c 20 63 6f 70 79 2c 20 | 6f 72 0a 58 2e 5c 22 20 |, copy, |or.X.\" |
|000004c0| 72 65 64 69 73 74 72 69 | 62 75 74 65 20 74 68 69 |redistri|bute thi|
|000004d0| 73 20 73 6f 66 74 77 61 | 72 65 20 73 6f 20 6c 6f |s softwa|re so lo|
|000004e0| 6e 67 20 61 73 20 61 6c | 6c 20 6f 66 20 74 68 65 |ng as al|l of the|
|000004f0| 20 6f 72 69 67 69 6e 61 | 6c 20 66 69 6c 65 73 20 | origina|l files |
|00000500| 61 72 65 20 69 6e 63 6c | 75 64 65 64 0a 58 2e 5c |are incl|uded.X.\|
|00000510| 22 20 75 6e 6d 6f 64 69 | 66 69 65 64 2c 20 74 68 |" unmodi|fied, th|
|00000520| 61 74 20 69 74 20 69 73 | 20 6e 6f 74 20 73 6f 6c |at it is| not sol|
|00000530| 64 20 66 6f 72 20 70 72 | 6f 66 69 74 2c 20 61 6e |d for pr|ofit, an|
|00000540| 64 20 74 68 61 74 20 74 | 68 69 73 20 63 6f 70 79 |d that t|his copy|
|00000550| 72 69 67 68 74 20 6e 6f | 74 69 63 65 0a 58 2e 5c |right no|tice.X.\|
|00000560| 22 20 69 73 20 72 65 74 | 61 69 6e 65 64 2e 0a 58 |" is ret|ained..X|
|00000570| 2e 5c 22 0a 58 2e 5c 22 | 20 7a 69 70 2e 31 20 62 |.\".X.\"| zip.1 b|
|00000580| 79 20 4d 61 72 6b 20 41 | 64 6c 65 72 2e 0a 58 2e |y Mark A|dler..X.|
|00000590| 5c 22 0a 58 2e 54 48 20 | 5a 49 50 20 31 0a 58 2e |\".X.TH |ZIP 1.X.|
|000005a0| 53 48 20 4e 41 4d 45 0a | 7a 69 70 20 5c 2d 20 70 |SH NAME.|zip \- p|
|000005b0| 61 63 6b 61 67 65 20 61 | 6e 64 20 63 6f 6d 70 72 |ackage a|nd compr|
|000005c0| 65 73 73 20 28 61 72 63 | 68 69 76 65 29 20 66 69 |ess (arc|hive) fi|
|000005d0| 6c 65 73 0a 58 2e 53 48 | 20 53 59 4e 4f 50 53 49 |les.X.SH| SYNOPSI|
|000005e0| 53 0a 58 2e 42 20 7a 69 | 70 0a 58 5b 0a 58 2e 42 |S.X.B zi|p.X[.X.B|
|000005f0| 20 5c 2d 63 64 65 66 67 | 68 69 6a 6b 6c 6d 6e 6f | \-cdefg|hijklmno|
|00000600| 71 72 73 75 77 79 7a 0a | 58 5d 20 5b 0a 58 2e 42 |qrsuwyz.|X] [.X.B|
|00000610| 20 5c 2d 62 0a 70 61 74 | 68 20 5d 20 5b 0a 58 2e | \-b.pat|h ] [.X.|
|00000620| 42 20 5c 2d 74 0a 6d 6d | 64 64 79 79 20 5d 20 7a |B \-t.mm|ddyy ] z|
|00000630| 69 70 66 69 6c 65 20 6c | 69 73 74 20 5b 0a 58 2e |ipfile l|ist [.X.|
|00000640| 42 20 5c 2d 78 0a 6c 69 | 73 74 20 5d 0a 58 2e 62 |B \-x.li|st ].X.b|
|00000650| 72 0a 58 2e 53 48 20 44 | 45 53 43 52 49 50 54 49 |r.X.SH D|ESCRIPTI|
|00000660| 4f 4e 0a 58 2e 49 20 5a | 69 70 0a 69 73 20 61 20 |ON.X.I Z|ip.is a |
|00000670| 63 6f 6d 70 72 65 73 73 | 69 6f 6e 20 61 6e 64 20 |compress|ion and |
|00000680| 66 69 6c 65 20 70 61 63 | 6b 61 67 69 6e 67 20 75 |file pac|kaging u|
|00000690| 74 69 6c 69 74 79 20 66 | 6f 72 20 55 6e 69 78 2c |tility f|or Unix,|
|000006a0| 20 4d 53 44 4f 53 2c 20 | 4f 53 2f 32 2c 20 61 6e | MSDOS, |OS/2, an|
|000006b0| 64 20 56 4d 53 2e 0a 49 | 74 20 69 73 0a 61 6e 61 |d VMS..I|t is.ana|
|000006c0| 6c 6f 67 6f 75 73 20 74 | 6f 20 61 20 63 6f 6d 62 |logous t|o a comb|
|000006d0| 69 6e 61 74 69 6f 6e 20 | 6f 66 20 74 61 72 20 61 |ination |of tar a|
|000006e0| 6e 64 20 63 6f 6d 70 72 | 65 73 73 20 61 6e 64 20 |nd compr|ess and |
|000006f0| 69 73 20 63 6f 6d 70 61 | 74 69 62 6c 65 20 77 69 |is compa|tible wi|
|00000700| 74 68 20 50 4b 5a 49 50 | 0a 58 28 50 68 69 6c 20 |th PKZIP|.X(Phil |
|00000710| 4b 61 74 7a 20 5a 49 50 | 29 20 66 6f 72 20 4d 53 |Katz ZIP|) for MS|
|00000720| 44 4f 53 20 73 79 73 74 | 65 6d 73 2e 0a 58 2e 50 |DOS syst|ems..X.P|
|00000730| 50 0a 54 68 65 72 65 20 | 69 73 20 61 20 63 6f 6d |P.There |is a com|
|00000740| 70 61 6e 69 6f 6e 20 74 | 6f 0a 58 2e 49 20 5a 69 |panion t|o.X.I Zi|
|00000750| 70 0a 63 61 6c 6c 65 64 | 0a 58 2e 49 20 55 6e 5a |p.called|.X.I UnZ|
|00000760| 69 70 0a 58 28 6f 66 20 | 63 6f 75 72 73 65 29 20 |ip.X(of |course) |
|00000770| 77 68 69 63 68 20 79 6f | 75 20 73 68 6f 75 6c 64 |which yo|u should|
|00000780| 20 62 65 20 61 62 6c 65 | 0a 74 6f 20 66 69 6e 64 | be able|.to find|
|00000790| 20 74 68 65 20 73 61 6d | 65 20 70 6c 61 63 65 20 | the sam|e place |
|000007a0| 79 6f 75 20 67 6f 74 0a | 58 2e 49 20 5a 69 70 2e |you got.|X.I Zip.|
|000007b0| 20 20 5a 69 70 0a 61 6e | 64 0a 58 2e 49 20 55 6e | Zip.an|d.X.I Un|
|000007c0| 5a 69 70 0a 63 61 6e 20 | 77 6f 72 6b 20 77 69 74 |Zip.can |work wit|
|000007d0| 68 20 66 69 6c 65 73 0a | 70 72 6f 64 75 63 65 64 |h files.|produced|
|000007e0| 20 62 79 20 50 4b 5a 49 | 50 20 75 6e 64 65 72 20 | by PKZI|P under |
|000007f0| 4d 53 44 4f 53 2c 20 61 | 6e 64 20 50 4b 5a 49 50 |MSDOS, a|nd PKZIP|
|00000800| 20 61 6e 64 20 50 4b 55 | 4e 5a 49 50 20 63 61 6e | and PKU|NZIP can|
|00000810| 20 77 6f 72 6b 20 77 69 | 74 68 20 66 69 6c 65 73 | work wi|th files|
|00000820| 0a 70 72 6f 64 75 63 65 | 64 20 62 79 0a 58 2e 49 |.produce|d by.X.I|
|00000830| 20 5a 69 70 2e 0a 58 2e | 50 50 0a 58 2e 49 20 5a | Zip..X.|PP.X.I Z|
|00000840| 69 70 0a 70 75 74 73 20 | 6f 6e 65 20 6f 72 20 6d |ip.puts |one or m|
|00000850| 6f 72 65 20 63 6f 6d 70 | 72 65 73 73 65 64 20 66 |ore comp|ressed f|
|00000860| 69 6c 65 73 20 69 6e 74 | 6f 20 61 20 73 69 6e 67 |iles int|o a sing|
|00000870| 6c 65 20 22 7a 69 70 20 | 66 69 6c 65 22 20 61 6c |le "zip |file" al|
|00000880| 6f 6e 67 20 77 69 74 68 | 0a 69 6e 66 6f 72 6d 61 |ong with|.informa|
|00000890| 74 69 6f 6e 20 61 62 6f | 75 74 20 74 68 65 20 66 |tion abo|ut the f|
|000008a0| 69 6c 65 73 2c 20 69 6e | 63 6c 75 64 69 6e 67 20 |iles, in|cluding |
|000008b0| 74 68 65 20 6e 61 6d 65 | 2c 20 70 61 74 68 20 69 |the name|, path i|
|000008c0| 66 20 72 65 71 75 65 73 | 74 65 64 2c 20 64 61 74 |f reques|ted, dat|
|000008d0| 65 0a 61 6e 64 20 74 69 | 6d 65 20 6c 61 73 74 20 |e.and ti|me last |
|000008e0| 6d 6f 64 69 66 69 65 64 | 2c 20 70 72 6f 74 65 63 |modified|, protec|
|000008f0| 74 69 6f 6e 2c 20 61 6e | 64 20 63 68 65 63 6b 20 |tion, an|d check |
|00000900| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 74 6f 20 76 |informat|ion to v|
|00000910| 65 72 69 66 79 20 74 68 | 65 0a 66 69 64 65 6c 69 |erify th|e.fideli|
|00000920| 74 79 20 6f 66 20 65 61 | 63 68 20 65 6e 74 72 79 |ty of ea|ch entry|
|00000930| 2e 0a 58 2e 49 20 5a 69 | 70 0a 63 61 6e 20 70 61 |..X.I Zi|p.can pa|
|00000940| 63 6b 20 61 6e 20 65 6e | 74 69 72 65 20 64 69 72 |ck an en|tire dir|
|00000950| 65 63 74 6f 72 79 20 73 | 74 72 75 63 74 75 72 65 |ectory s|tructure|
|00000960| 20 69 6e 20 61 0a 7a 69 | 70 20 66 69 6c 65 20 77 | in a.zi|p file w|
|00000970| 69 74 68 20 61 20 73 69 | 6e 67 6c 65 20 63 6f 6d |ith a si|ngle com|
|00000980| 6d 61 6e 64 2e 20 20 43 | 6f 6d 70 72 65 73 73 69 |mand. C|ompressi|
|00000990| 6f 6e 20 72 61 74 69 6f | 73 20 6f 66 20 32 3a 31 |on ratio|s of 2:1|
|000009a0| 20 74 6f 20 33 3a 31 20 | 61 72 65 0a 63 6f 6d 6d | to 3:1 |are.comm|
|000009b0| 6f 6e 20 66 6f 72 20 74 | 65 78 74 20 66 69 6c 65 |on for t|ext file|
|000009c0| 73 2e 0a 58 2e 49 20 5a | 69 70 0a 68 61 73 20 74 |s..X.I Z|ip.has t|
|000009d0| 77 6f 20 63 6f 6d 70 72 | 65 73 73 69 6f 6e 20 6d |wo compr|ession m|
|000009e0| 65 74 68 6f 64 73 2c 20 | 69 6d 70 6c 6f 73 69 6f |ethods, |implosio|
|000009f0| 6e 20 61 6e 64 0a 73 68 | 72 69 6e 6b 69 6e 67 2c |n and.sh|rinking,|
|00000a00| 20 61 6e 64 20 61 75 74 | 6f 6d 61 74 69 63 61 6c | and aut|omatical|
|00000a10| 6c 79 20 63 68 6f 6f 73 | 65 73 20 74 68 65 20 62 |ly choos|es the b|
|00000a20| 65 74 74 65 72 20 6f 66 | 20 74 68 65 20 74 77 6f |etter of| the two|
|00000a30| 20 66 6f 72 20 65 61 63 | 68 20 66 69 6c 65 0a 74 | for eac|h file.t|
|00000a40| 6f 20 62 65 20 63 6f 6d | 70 72 65 73 73 65 64 2e |o be com|pressed.|
|00000a50| 0a 58 2e 50 50 0a 58 2e | 49 20 5a 69 70 0a 69 73 |.X.PP.X.|I Zip.is|
|00000a60| 20 75 73 65 66 75 6c 20 | 66 6f 72 20 70 61 63 6b | useful |for pack|
|00000a70| 61 67 69 6e 67 20 61 20 | 73 65 74 20 6f 66 20 66 |aging a |set of f|
|00000a80| 69 6c 65 73 20 74 6f 20 | 73 65 6e 64 20 74 6f 20 |iles to |send to |
|00000a90| 73 6f 6d 65 6f 6e 65 20 | 6f 72 20 66 6f 72 0a 64 |someone |or for.d|
|00000aa0| 69 73 74 72 69 62 75 74 | 69 6f 6e 3b 20 66 6f 72 |istribut|ion; for|
|00000ab0| 20 61 72 63 68 69 76 69 | 6e 67 20 6f 72 20 62 61 | archivi|ng or ba|
|00000ac0| 63 6b 69 6e 67 20 75 70 | 20 66 69 6c 65 73 3b 20 |cking up| files; |
|00000ad0| 61 6e 64 20 66 6f 72 20 | 73 61 76 69 6e 67 20 64 |and for |saving d|
|00000ae0| 69 73 6b 20 73 70 61 63 | 65 20 62 79 20 74 65 6d |isk spac|e by tem|
|00000af0| 70 6f 72 61 72 69 6c 79 | 0a 63 6f 6d 70 72 65 73 |porarily|.compres|
|00000b00| 73 69 6e 67 20 75 6e 75 | 73 65 64 20 66 69 6c 65 |sing unu|sed file|
|00000b10| 73 20 6f 72 20 64 69 72 | 65 63 74 6f 72 69 65 73 |s or dir|ectories|
|00000b20| 2e 0a 58 2e 53 48 20 22 | 48 4f 57 20 54 4f 20 49 |..X.SH "|HOW TO I|
|00000b30| 4e 53 54 41 4c 4c 20 5a | 49 50 22 0a 58 2e 49 20 |NSTALL Z|IP".X.I |
|00000b40| 5a 69 70 0a 69 73 20 64 | 69 73 74 72 69 62 75 74 |Zip.is d|istribut|
|00000b50| 65 64 20 61 73 20 43 20 | 73 6f 75 72 63 65 20 63 |ed as C |source c|
|00000b60| 6f 64 65 20 74 68 61 74 | 20 63 61 6e 20 62 65 20 |ode that| can be |
|00000b70| 63 6f 6d 70 69 6c 65 64 | 20 6f 6e 20 61 20 77 69 |compiled| on a wi|
|00000b80| 64 65 20 72 61 6e 67 65 | 20 6f 66 0a 55 6e 69 78 |de range| of.Unix|
|00000b90| 20 6d 61 63 68 69 6e 65 | 73 2c 20 56 41 58 65 73 | machine|s, VAXes|
|00000ba0| 20 72 75 6e 6e 69 6e 67 | 20 56 4d 53 2c 20 61 6e | running| VMS, an|
|00000bb0| 64 20 4d 53 44 4f 53 20 | 6d 61 63 68 69 6e 65 73 |d MSDOS |machines|
|00000bc0| 20 75 73 69 6e 67 0a 4d | 69 63 72 6f 73 6f 66 74 | using.M|icrosoft|
|00000bd0| 20 6f 72 20 42 6f 72 6c | 61 6e 64 20 43 2b 2b 2c | or Borl|and C++,|
|00000be0| 20 61 6e 64 20 4f 53 2f | 32 20 6d 61 63 68 69 6e | and OS/|2 machin|
|00000bf0| 65 73 20 75 73 69 6e 67 | 20 4d 69 63 72 6f 73 6f |es using| Microso|
|00000c00| 66 74 20 43 2e 0a 59 6f | 75 20 77 69 6c 6c 0a 6e |ft C..Yo|u will.n|
|00000c10| 65 65 64 20 55 6e 7a 69 | 70 20 28 75 6e 64 65 72 |eed Unzi|p (under|
|00000c20| 20 55 6e 69 78 2c 20 4d | 53 44 4f 53 2c 20 6f 72 | Unix, M|SDOS, or|
|00000c30| 20 56 4d 53 29 20 6f 72 | 20 50 4b 55 4e 5a 49 50 | VMS) or| PKUNZIP|
|00000c40| 20 28 75 6e 64 65 72 20 | 4d 53 44 4f 53 29 20 74 | (under |MSDOS) t|
|00000c50| 6f 20 75 6e 70 61 63 6b | 20 74 68 65 0a 64 69 73 |o unpack| the.dis|
|00000c60| 74 72 69 62 75 74 69 6f | 6e 20 66 69 6c 65 2c 20 |tributio|n file, |
|00000c70| 7a 69 70 31 30 2e 7a 69 | 70 2e 0a 58 2e 50 50 0a |zip10.zi|p..X.PP.|
|00000c80| 58 46 69 72 73 74 2c 20 | 75 6e 70 61 63 6b 20 74 |XFirst, |unpack t|
|00000c90| 68 65 20 73 6f 75 72 63 | 65 20 61 73 20 66 6f 6c |he sourc|e as fol|
|00000ca0| 6c 6f 77 73 2c 20 61 73 | 73 75 6d 69 6e 67 20 74 |lows, as|suming t|
|00000cb0| 68 61 74 20 79 6f 75 0a | 68 61 76 65 20 7a 69 70 |hat you.|have zip|
|00000cc0| 31 30 2e 7a 69 70 20 69 | 6e 20 74 68 65 20 63 75 |10.zip i|n the cu|
|00000cd0| 72 72 65 6e 74 20 64 69 | 72 65 63 74 6f 72 79 3a |rrent di|rectory:|
|00000ce0| 0a 58 2e 50 50 0a 58 2e | 74 69 2b 35 6e 0a 6d 6b |.X.PP.X.|ti+5n.mk|
|00000cf0| 64 69 72 20 7a 69 70 73 | 72 63 0a 58 2e 74 69 2b |dir zips|rc.X.ti+|
|00000d00| 35 6e 0a 63 64 20 7a 69 | 70 73 72 63 0a 58 2e 74 |5n.cd zi|psrc.X.t|
|00000d10| 69 2b 35 6e 0a 75 6e 7a | 69 70 20 2e 2e 2f 7a 69 |i+5n.unz|ip ../zi|
|00000d20| 70 31 30 0a 58 2e 50 50 | 0a 54 68 69 73 20 65 78 |p10.X.PP|.This ex|
|00000d30| 74 72 61 63 74 73 20 61 | 6c 6c 20 73 6f 75 72 63 |tracts a|ll sourc|
|00000d40| 65 20 66 69 6c 65 73 20 | 61 6e 64 20 64 6f 63 75 |e files |and docu|
|00000d50| 6d 65 6e 74 61 74 69 6f | 6e 20 69 6e 20 74 68 65 |mentatio|n in the|
|00000d60| 20 64 69 72 65 63 74 6f | 72 79 20 63 61 6c 6c 65 | directo|ry calle|
|00000d70| 64 0a 58 22 7a 69 70 73 | 72 63 22 2e 20 59 6f 75 |d.X"zips|rc". You|
|00000d80| 20 74 68 65 6e 20 64 6f | 3a 0a 58 2e 50 50 0a 58 | then do|:.X.PP.X|
|00000d90| 2e 74 69 2b 35 6e 0a 6d | 61 6b 65 20 73 79 73 74 |.ti+5n.m|ake syst|
|00000da0| 65 6d 0a 58 2e 50 50 0a | 77 68 65 72 65 20 22 73 |em.X.PP.|where "s|
|00000db0| 79 73 74 65 6d 22 20 69 | 73 20 6f 6e 65 20 6f 66 |ystem" i|s one of|
|00000dc0| 3a 20 62 73 64 2c 20 62 | 73 64 6f 6c 64 2c 20 73 |: bsd, b|sdold, s|
|00000dd0| 79 73 76 2c 20 6e 65 78 | 74 2c 20 6e 65 78 74 31 |ysv, nex|t, next1|
|00000de0| 30 2c 20 73 75 6e 2c 20 | 68 70 75 78 2c 20 64 6e |0, sun, |hpux, dn|
|00000df0| 69 78 2c 0a 63 72 61 79 | 2c 20 33 62 31 2c 20 7a |ix,.cray|, 3b1, z|
|00000e00| 69 6c 6f 67 2c 20 61 75 | 78 2c 20 63 6f 6e 76 65 |ilog, au|x, conve|
|00000e10| 78 2c 20 61 69 78 2c 20 | 6f 72 20 6d 69 6e 69 78 |x, aix, |or minix|
|00000e20| 2e 20 20 49 66 20 79 6f | 75 20 61 72 65 20 75 73 |. If yo|u are us|
|00000e30| 69 6e 67 20 61 20 4e 65 | 58 54 0a 72 75 6e 6e 69 |ing a Ne|XT.runni|
|00000e40| 6e 67 20 76 65 72 73 69 | 6f 6e 0a 58 32 2e 30 20 |ng versi|on.X2.0 |
|00000e50| 6f 72 20 67 72 65 61 74 | 65 72 2c 20 74 68 65 6e |or great|er, then|
|00000e60| 20 6d 61 6b 65 20 6e 65 | 78 74 2e 20 20 49 66 20 | make ne|xt. If |
|00000e70| 79 6f 75 20 61 72 65 20 | 75 73 69 6e 67 20 31 2e |you are |using 1.|
|00000e80| 30 2c 20 74 68 65 6e 20 | 6d 61 6b 65 0a 6e 65 78 |0, then |make.nex|
|00000e90| 74 31 30 2e 20 20 49 66 | 20 79 6f 75 0a 61 72 65 |t10. If| you.are|
|00000ea0| 20 75 73 69 6e 67 20 53 | 75 6e 20 4f 53 20 34 2e | using S|un OS 4.|
|00000eb0| 78 2c 20 74 68 65 6e 20 | 6d 61 6b 65 20 73 75 6e |x, then |make sun|
|00000ec0| 2e 20 20 49 66 20 79 6f | 75 20 61 72 65 20 75 73 |. If yo|u are us|
|00000ed0| 69 6e 67 20 48 50 55 58 | 2c 20 74 68 65 6e 20 6d |ing HPUX|, then m|
|00000ee0| 61 6b 65 20 68 70 75 78 | 2e 0a 54 68 65 20 6f 74 |ake hpux|..The ot|
|00000ef0| 68 65 72 20 73 70 65 63 | 69 61 6c 20 73 79 73 74 |her spec|ial syst|
|00000f00| 65 6d 73 20 61 72 65 20 | 44 4e 49 58 20 35 2e 32 |ems are |DNIX 5.2|
|00000f10| 20 6f 72 20 35 2e 33 2c | 20 43 72 61 79 20 55 6e | or 5.3,| Cray Un|
|00000f20| 69 63 6f 73 2c 0a 41 54 | 26 54 20 33 42 31 20 28 |icos,.AT|&T 3B1 (|
|00000f30| 61 6c 73 6f 20 6b 6e 6f | 77 6e 20 61 73 20 55 6e |also kno|wn as Un|
|00000f40| 69 78 20 50 43 20 6f 72 | 20 50 43 20 37 33 30 30 |ix PC or| PC 7300|
|00000f50| 29 2c 20 5a 69 6c 6f 67 | 20 5a 65 75 73 2c 20 41 |), Zilog| Zeus, A|
|00000f60| 2f 55 58 2c 20 43 6f 6e | 76 65 78 2c 20 41 49 58 |/UX, Con|vex, AIX|
|00000f70| 2c 0a 61 6e 64 20 4d 49 | 4e 49 58 2e 0a 4f 74 68 |,.and MI|NIX..Oth|
|00000f80| 65 72 77 69 73 65 2c 20 | 69 66 20 79 6f 75 20 61 |erwise, |if you a|
|00000f90| 72 65 20 75 73 69 6e 67 | 20 42 53 44 20 55 6e 69 |re using| BSD Uni|
|00000fa0| 78 2c 20 74 72 79 20 62 | 73 64 2e 20 20 49 66 20 |x, try b|sd. If |
|00000fb0| 74 68 65 20 6c 69 6e 6b | 65 72 20 63 61 6e 6e 6f |the link|er canno|
|00000fc0| 74 20 66 69 6e 64 0a 58 | 5f 6d 65 6d 73 65 74 20 |t find.X|_memset |
|00000fd0| 6f 72 20 5f 6d 65 6d 63 | 70 79 2c 20 74 72 79 20 |or _memc|py, try |
|00000fe0| 62 73 64 6f 6c 64 2e 20 | 20 49 66 20 79 6f 75 20 |bsdold. | If you |
|00000ff0| 61 72 65 20 75 73 69 6e | 67 20 53 79 73 74 65 6d |are usin|g System|
|00001000| 20 56 20 55 6e 69 78 20 | 6f 72 20 53 43 4f 20 55 | V Unix |or SCO U|
|00001010| 6e 69 78 2c 0a 74 72 79 | 20 73 79 73 76 2e 20 20 |nix,.try| sysv. |
|00001020| 41 6c 73 6f 20 75 73 65 | 20 73 79 73 76 20 6f 6e |Also use| sysv on|
|00001030| 20 61 20 53 69 6c 69 63 | 6f 6e 20 47 72 61 70 68 | a Silic|on Graph|
|00001040| 69 63 73 20 28 53 47 49 | 29 20 6d 61 63 68 69 6e |ics (SGI|) machin|
|00001050| 65 2e 0a 59 6f 75 20 63 | 61 6e 20 61 6c 73 6f 20 |e..You c|an also |
|00001060| 63 72 6f 73 73 2d 63 6f | 6d 70 69 6c 65 0a 58 2e |cross-co|mpile.X.|
|00001070| 49 20 5a 69 70 0a 66 6f | 72 20 4d 53 44 4f 53 20 |I Zip.fo|r MSDOS |
|00001080| 75 6e 64 65 72 20 53 43 | 4f 20 33 38 36 20 55 6e |under SC|O 386 Un|
|00001090| 69 78 20 75 73 69 6e 67 | 20 22 6d 61 6b 65 20 73 |ix using| "make s|
|000010a0| 63 6f 64 6f 73 22 2e 0a | 58 2e 50 50 0a 49 66 20 |codos"..|X.PP.If |
|000010b0| 6e 6f 6e 65 20 6f 66 20 | 74 68 65 73 65 20 63 6f |none of |these co|
|000010c0| 6d 70 69 6c 65 73 2c 20 | 6c 69 6e 6b 73 2c 20 61 |mpiles, |links, a|
|000010d0| 6e 64 20 66 75 6e 63 74 | 69 6f 6e 73 20 70 72 6f |nd funct|ions pro|
|000010e0| 70 65 72 6c 79 20 6f 6e | 20 79 6f 75 72 20 55 6e |perly on| your Un|
|000010f0| 69 78 20 73 79 73 74 65 | 6d 2c 0a 73 65 65 20 74 |ix syste|m,.see t|
|00001100| 68 65 20 73 65 63 74 69 | 6f 6e 20 42 55 47 53 20 |he secti|on BUGS |
|00001110| 62 65 6c 6f 77 20 66 6f | 72 20 68 6f 77 20 74 6f |below fo|r how to|
|00001120| 20 67 65 74 20 68 65 6c | 70 2e 0a 58 2e 50 50 0a | get hel|p..X.PP.|
|00001130| 49 66 20 74 68 65 20 61 | 70 70 72 6f 70 72 69 61 |If the a|ppropria|
|00001140| 74 65 20 73 79 73 74 65 | 6d 20 77 61 73 20 73 65 |te syste|m was se|
|00001150| 6c 65 63 74 65 64 2c 20 | 74 68 65 6e 20 74 68 65 |lected, |then the|
|00001160| 20 65 78 65 63 75 74 61 | 62 6c 65 20 22 7a 69 70 | executa|ble "zip|
|00001170| 22 20 77 69 6c 6c 20 62 | 65 0a 63 72 65 61 74 65 |" will b|e.create|
|00001180| 64 2e 20 20 59 6f 75 20 | 63 61 6e 20 6d 6f 76 65 |d. You |can move|
|00001190| 20 74 68 65 20 65 78 65 | 63 75 74 61 62 6c 65 20 | the exe|cutable |
|000011a0| 22 7a 69 70 22 20 74 6f | 20 61 6e 20 61 70 70 72 |"zip" to| an appr|
|000011b0| 6f 70 72 69 61 74 65 20 | 64 69 72 65 63 74 6f 72 |opriate |director|
|000011c0| 79 0a 69 6e 20 74 68 65 | 20 73 65 61 72 63 68 20 |y.in the| search |
|000011d0| 70 61 74 68 20 75 73 69 | 6e 67 20 61 20 63 6f 6d |path usi|ng a com|
|000011e0| 6d 61 6e 64 20 6c 69 6b | 65 3a 0a 58 2e 50 50 0a |mand lik|e:.X.PP.|
|000011f0| 58 2e 74 69 2b 35 6e 0a | 6d 76 20 7a 69 70 20 7e |X.ti+5n.|mv zip ~|
|00001200| 2f 62 69 6e 0a 58 2e 50 | 50 0a 6f 72 0a 58 2e 50 |/bin.X.P|P.or.X.P|
|00001210| 50 0a 58 2e 74 69 2b 35 | 6e 0a 6d 76 20 7a 69 70 |P.X.ti+5|n.mv zip|
|00001220| 20 2f 75 73 72 2f 6c 6f | 63 61 6c 2f 62 69 6e 0a | /usr/lo|cal/bin.|
|00001230| 58 2e 50 50 0a 59 6f 75 | 20 63 61 6e 20 75 73 65 |X.PP.You| can use|
|00001240| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 20 22 73 65 | the com|mand "se|
|00001250| 74 22 20 74 6f 20 73 65 | 65 20 74 68 65 20 63 75 |t" to se|e the cu|
|00001260| 72 72 65 6e 74 20 73 65 | 61 72 63 68 20 70 61 74 |rrent se|arch pat|
|00001270| 68 2e 20 20 49 66 20 79 | 6f 75 20 61 72 65 0a 75 |h. If y|ou are.u|
|00001280| 73 69 6e 67 20 74 68 65 | 20 43 2d 53 68 65 6c 6c |sing the| C-Shell|
|00001290| 20 28 63 73 68 29 2c 20 | 65 6e 74 65 72 20 74 68 | (csh), |enter th|
|000012a0| 65 20 63 6f 6d 6d 61 6e | 64 3a 0a 58 2e 50 50 0a |e comman|d:.X.PP.|
|000012b0| 58 2e 74 69 2b 35 6e 0a | 72 65 68 61 73 68 0a 58 |X.ti+5n.|rehash.X|
|000012c0| 2e 50 50 0a 73 6f 20 63 | 73 68 20 63 61 6e 20 66 |.PP.so c|sh can f|
|000012d0| 69 6e 64 20 74 68 65 20 | 6e 65 77 20 63 6f 6d 6d |ind the |new comm|
|000012e0| 61 6e 64 20 69 6e 20 74 | 68 65 20 70 61 74 68 2e |and in t|he path.|
|000012f0| 20 20 59 6f 75 20 61 72 | 65 20 6e 6f 77 20 72 65 | You ar|e now re|
|00001300| 61 64 79 20 74 6f 20 75 | 73 65 0a 58 2e 49 20 5a |ady to u|se.X.I Z|
|00001310| 69 70 2e 0a 58 2e 50 50 | 0a 59 6f 75 20 63 61 6e |ip..X.PP|.You can|
|00001320| 20 61 6c 73 6f 20 6d 6f | 76 65 20 74 68 65 20 6d | also mo|ve the m|
|00001330| 61 6e 75 61 6c 20 70 61 | 67 65 20 28 74 68 65 20 |anual pa|ge (the |
|00001340| 72 61 77 20 66 6f 72 6d | 20 6f 66 20 77 68 61 74 |raw form| of what|
|00001350| 20 79 6f 75 27 72 65 20 | 72 65 61 64 69 6e 67 29 | you're |reading)|
|00001360| 0a 74 6f 20 77 68 65 72 | 65 20 74 68 65 20 55 6e |.to wher|e the Un|
|00001370| 69 78 20 6d 61 6e 20 63 | 6f 6d 6d 61 6e 64 20 63 |ix man c|ommand c|
|00001380| 61 6e 20 66 69 6e 64 20 | 69 74 20 28 61 73 73 75 |an find |it (assu|
|00001390| 6d 69 6e 67 20 79 6f 75 | 20 68 61 76 65 20 74 68 |ming you| have th|
|000013a0| 65 20 6e 65 63 65 73 73 | 61 72 79 0a 70 72 69 76 |e necess|ary.priv|
|000013b0| 69 6c 65 67 65 73 29 3a | 0a 58 2e 50 50 0a 58 2e |ileges):|.X.PP.X.|
|000013c0| 74 69 2b 35 6e 0a 6d 76 | 20 7a 69 70 2e 31 20 2f |ti+5n.mv| zip.1 /|
|000013d0| 75 73 72 2f 6d 61 6e 2f | 6d 61 6e 31 0a 58 2e 50 |usr/man/|man1.X.P|
|000013e0| 50 0a 59 6f 75 20 63 61 | 6e 20 67 65 74 20 72 69 |P.You ca|n get ri|
|000013f0| 64 20 6f 66 20 74 68 65 | 20 6e 6f 77 20 75 6e 6e |d of the| now unn|
|00001400| 65 63 65 73 73 61 72 79 | 20 73 6f 75 72 63 65 20 |ecessary| source |
|00001410| 61 6e 64 20 6f 62 6a 65 | 63 74 20 66 69 6c 65 73 |and obje|ct files|
|00001420| 20 77 69 74 68 3a 0a 58 | 2e 50 50 0a 58 2e 74 69 | with:.X|.PP.X.ti|
|00001430| 2b 35 6e 0a 63 64 20 2e | 2e 0a 58 2e 74 69 2b 35 |+5n.cd .|..X.ti+5|
|00001440| 6e 0a 72 6d 20 2d 72 20 | 7a 69 70 73 72 63 0a 58 |n.rm -r |zipsrc.X|
|00001450| 2e 50 50 0a 54 68 69 73 | 20 77 69 6c 6c 20 72 65 |.PP.This| will re|
|00001460| 6d 6f 76 65 20 74 68 65 | 20 64 69 72 65 63 74 6f |move the| directo|
|00001470| 72 79 20 7a 69 70 20 61 | 6e 64 20 69 74 73 20 63 |ry zip a|nd its c|
|00001480| 6f 6e 74 65 6e 74 73 20 | 63 72 65 61 74 65 64 20 |ontents |created |
|00001490| 62 79 20 75 6e 7a 69 70 | 2e 0a 59 6f 75 20 73 68 |by unzip|..You sh|
|000014a0| 6f 75 6c 64 20 6b 65 65 | 70 20 74 68 65 20 7a 69 |ould kee|p the zi|
|000014b0| 70 31 30 2e 7a 69 70 20 | 66 69 6c 65 20 61 72 6f |p10.zip |file aro|
|000014c0| 75 6e 64 20 74 68 6f 75 | 67 68 2c 20 69 6e 20 63 |und thou|gh, in c|
|000014d0| 61 73 65 20 79 6f 75 0a | 6e 65 65 64 20 74 6f 20 |ase you.|need to |
|000014e0| 62 75 69 6c 64 20 69 74 | 20 61 67 61 69 6e 20 6f |build it| again o|
|000014f0| 72 20 77 61 6e 74 20 74 | 6f 20 67 69 76 65 20 69 |r want t|o give i|
|00001500| 74 20 74 6f 20 61 20 63 | 6f 6c 6c 65 61 67 75 65 |t to a c|olleague|
|00001510| 2e 0a 58 2e 50 50 0a 54 | 68 65 20 73 74 65 70 73 |..X.PP.T|he steps|
|00001520| 20 66 6f 72 20 69 6e 73 | 74 61 6c 6c 61 74 69 6f | for ins|tallatio|
|00001530| 6e 20 75 6e 64 65 72 20 | 4d 53 44 4f 53 2c 20 4f |n under |MSDOS, O|
|00001540| 53 2f 32 2c 20 61 6e 64 | 20 56 4d 53 20 61 72 65 |S/2, and| VMS are|
|00001550| 20 73 69 6d 69 6c 61 72 | 20 74 6f 20 74 68 65 20 | similar| to the |
|00001560| 61 62 6f 76 65 3a 0a 66 | 69 72 73 74 20 75 6e 7a |above:.f|irst unz|
|00001570| 69 70 20 74 68 65 20 64 | 69 73 74 72 69 62 75 74 |ip the d|istribut|
|00001580| 69 6f 6e 20 66 69 6c 65 | 73 20 69 6e 74 6f 20 74 |ion file|s into t|
|00001590| 68 65 69 72 20 6f 77 6e | 20 64 69 72 65 63 74 6f |heir own| directo|
|000015a0| 72 79 2e 20 20 54 68 65 | 6e 20 75 6e 64 65 72 0a |ry. The|n under.|
|000015b0| 4d 53 44 4f 53 20 64 6f | 20 6f 6e 65 20 6f 66 3a |MSDOS do| one of:|
|000015c0| 0a 58 2e 50 50 0a 58 2e | 74 69 2b 35 6e 0a 6d 61 |.X.PP.X.|ti+5n.ma|
|000015d0| 6b 65 20 6d 61 6b 65 66 | 69 6c 65 2e 6d 73 63 0a |ke makef|ile.msc.|
|000015e0| 58 2e 74 69 2b 35 6e 0a | 6d 61 6b 65 20 2d 66 6d |X.ti+5n.|make -fm|
|000015f0| 61 6b 65 66 69 6c 65 2e | 62 6f 72 0a 58 2e 50 50 |akefile.|bor.X.PP|
|00001600| 0a 66 6f 72 20 4d 69 63 | 72 6f 73 6f 66 74 20 6f |.for Mic|rosoft o|
|00001610| 72 20 42 6f 72 6c 61 6e | 64 20 43 2b 2b 2c 20 72 |r Borlan|d C++, r|
|00001620| 65 73 70 65 63 74 69 76 | 65 6c 79 2e 20 20 55 6e |espectiv|ely. Un|
|00001630| 64 65 72 20 4f 53 2f 32 | 3a 0a 58 2e 50 50 0a 58 |der OS/2|:.X.PP.X|
|00001640| 2e 74 69 2b 35 6e 0a 6e | 6d 61 6b 65 20 2d 66 20 |.ti+5n.n|make -f |
|00001650| 6d 61 6b 65 66 69 6c 65 | 2e 6f 73 32 0a 58 2e 50 |makefile|.os2.X.P|
|00001660| 50 0a 66 6f 72 20 4d 69 | 63 72 6f 73 6f 66 74 20 |P.for Mi|crosoft |
|00001670| 43 20 36 2e 30 30 2e 20 | 20 55 6e 64 65 72 20 56 |C 6.00. | Under V|
|00001680| 41 58 20 56 4d 53 3a 0a | 58 2e 50 50 0a 58 2e 74 |AX VMS:.|X.PP.X.t|
|00001690| 69 2b 35 6e 0a 58 40 6d | 61 6b 65 76 6d 73 0a 58 |i+5n.X@m|akevms.X|
|000016a0| 2e 50 50 0a 54 68 65 20 | 69 6e 73 74 61 6c 6c 61 |.PP.The |installa|
|000016b0| 74 69 6f 6e 20 70 72 6f | 63 65 73 73 20 77 69 6c |tion pro|cess wil|
|000016c0| 6c 20 61 6c 73 6f 20 63 | 6f 6d 70 69 6c 65 20 61 |l also c|ompile a|
|000016d0| 6e 64 20 6c 69 6e 6b 20 | 73 65 76 65 72 61 6c 0a |nd link |several.|
|000016e0| 6f 74 68 65 72 20 75 74 | 69 6c 69 74 69 65 73 2e |other ut|ilities.|
|000016f0| 20 20 54 68 65 79 20 61 | 72 65 20 7a 69 70 63 6c | They a|re zipcl|
|00001700| 6f 61 6b 20 66 6f 72 20 | 65 6e 63 72 79 70 74 69 |oak for |encrypti|
|00001710| 6e 67 20 61 6e 64 20 64 | 65 63 72 79 70 74 69 6e |ng and d|ecryptin|
|00001720| 67 20 7a 69 70 20 66 69 | 6c 65 73 2c 0a 7a 69 70 |g zip fi|les,.zip|
|00001730| 6e 6f 74 65 20 66 6f 72 | 20 65 64 69 74 69 6e 67 |note for| editing|
|00001740| 20 7a 69 70 20 66 69 6c | 65 20 63 6f 6d 6d 65 6e | zip fil|e commen|
|00001750| 74 73 2c 20 7a 69 70 73 | 70 6c 69 74 20 66 6f 72 |ts, zips|plit for|
|00001760| 20 73 70 6c 69 74 74 69 | 6e 67 20 61 20 7a 69 70 | splitti|ng a zip|
|00001770| 20 66 69 6c 65 0a 69 6e | 74 6f 20 73 65 76 65 72 | file.in|to sever|
|00001780| 61 6c 20 7a 69 70 20 66 | 69 6c 65 73 2c 20 61 6e |al zip f|iles, an|
|00001790| 64 20 73 68 69 70 20 66 | 6f 72 20 73 65 6e 64 69 |d ship f|or sendi|
|000017a0| 6e 67 20 7a 69 70 20 66 | 69 6c 65 73 20 6f 72 20 |ng zip f|iles or |
|000017b0| 61 6e 79 20 6f 74 68 65 | 72 20 62 69 6e 61 72 79 |any othe|r binary|
|000017c0| 0a 66 69 6c 65 20 76 69 | 61 20 65 6c 65 63 74 72 |.file vi|a electr|
|000017d0| 6f 6e 69 63 20 6d 61 69 | 6c 2e 20 20 46 6f 72 20 |onic mai|l. For |
|000017e0| 63 6f 6d 6d 61 6e 64 20 | 68 65 6c 70 20 6f 6e 20 |command |help on |
|000017f0| 61 6e 79 20 6f 66 20 74 | 68 65 20 7a 69 70 2a 20 |any of t|he zip* |
|00001800| 75 74 69 6c 69 74 69 65 | 73 2c 0a 73 69 6d 70 6c |utilitie|s,.simpl|
|00001810| 79 20 65 6e 74 65 72 20 | 74 68 65 20 6e 61 6d 65 |y enter |the name|
|00001820| 20 77 69 74 68 20 6e 6f | 20 61 72 67 75 6d 65 6e | with no| argumen|
|00001830| 74 73 2e 20 20 46 6f 72 | 20 68 65 6c 70 20 77 69 |ts. For| help wi|
|00001840| 74 68 20 73 68 69 70 2c | 20 65 6e 74 65 72 20 22 |th ship,| enter "|
|00001850| 73 68 69 70 20 2d 68 22 | 2e 0a 58 2e 53 48 20 22 |ship -h"|..X.SH "|
|00001860| 48 4f 57 20 54 4f 20 55 | 53 45 20 5a 49 50 22 0a |HOW TO U|SE ZIP".|
|00001870| 54 68 65 20 73 69 6d 70 | 6c 65 73 74 20 75 73 65 |The simp|lest use|
|00001880| 20 6f 66 0a 58 2e 49 20 | 5a 69 70 0a 69 73 20 61 | of.X.I |Zip.is a|
|00001890| 73 20 66 6f 6c 6c 6f 77 | 73 3a 0a 58 2e 50 50 0a |s follow|s:.X.PP.|
|000018a0| 58 2e 74 69 2b 35 6e 0a | 7a 69 70 20 73 74 75 66 |X.ti+5n.|zip stuf|
|000018b0| 66 20 2a 0a 58 2e 50 50 | 0a 54 68 69 73 20 77 69 |f *.X.PP|.This wi|
|000018c0| 6c 6c 20 63 72 65 61 74 | 65 20 74 68 65 20 66 69 |ll creat|e the fi|
|000018d0| 6c 65 20 22 73 74 75 66 | 66 2e 7a 69 70 22 20 28 |le "stuf|f.zip" (|
|000018e0| 61 73 73 75 6d 69 6e 67 | 20 69 74 20 64 6f 65 73 |assuming| it does|
|000018f0| 20 6e 6f 74 20 65 78 69 | 73 74 29 20 61 6e 64 20 | not exi|st) and |
|00001900| 70 75 74 0a 61 6c 6c 20 | 74 68 65 20 66 69 6c 65 |put.all |the file|
|00001910| 73 20 69 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |s in the| current|
|00001920| 20 64 69 72 65 63 74 6f | 72 79 20 69 6e 20 73 74 | directo|ry in st|
|00001930| 75 66 66 2e 7a 69 70 20 | 69 6e 20 61 20 63 6f 6d |uff.zip |in a com|
|00001940| 70 72 65 73 73 65 64 20 | 66 6f 72 6d 2e 0a 54 68 |pressed |form..Th|
|00001950| 65 20 2e 7a 69 70 20 73 | 75 66 66 69 78 20 69 73 |e .zip s|uffix is|
|00001960| 20 61 64 64 65 64 20 61 | 75 74 6f 6d 61 74 69 63 | added a|utomatic|
|00001970| 61 6c 6c 79 2c 20 75 6e | 6c 65 73 73 20 74 68 61 |ally, un|less tha|
|00001980| 74 20 66 69 6c 65 20 6e | 61 6d 65 20 67 69 76 65 |t file n|ame give|
|00001990| 6e 20 63 6f 6e 74 61 69 | 6e 73 0a 61 20 64 6f 74 |n contai|ns.a dot|
|000019a0| 20 61 6c 72 65 61 64 79 | 2e 20 20 54 68 69 73 20 | already|. This |
|000019b0| 61 6c 6c 6f 77 73 20 73 | 70 65 63 69 66 79 69 6e |allows s|pecifyin|
|000019c0| 67 20 73 75 66 66 69 78 | 65 73 20 6f 74 68 65 72 |g suffix|es other|
|000019d0| 20 74 68 61 6e 20 22 2e | 7a 69 70 22 2e 0a 58 2e | than ".|zip"..X.|
|000019e0| 50 50 0a 42 65 63 61 75 | 73 65 20 6f 66 20 74 68 |PP.Becau|se of th|
|000019f0| 65 20 77 61 79 20 74 68 | 65 20 73 68 65 6c 6c 20 |e way th|e shell |
|00001a00| 64 6f 65 73 20 66 69 6c | 65 6e 61 6d 65 20 73 75 |does fil|ename su|
|00001a10| 62 73 74 69 74 75 74 69 | 6f 6e 2c 20 66 69 6c 65 |bstituti|on, file|
|00001a20| 73 20 74 68 61 74 20 73 | 74 61 72 74 0a 77 69 74 |s that s|tart.wit|
|00001a30| 68 20 61 20 22 2e 22 20 | 61 72 65 20 6e 6f 74 20 |h a "." |are not |
|00001a40| 69 6e 63 6c 75 64 65 64 | 2e 20 20 54 6f 20 69 6e |included|. To in|
|00001a50| 63 6c 75 64 65 20 74 68 | 6f 73 65 20 61 73 20 77 |clude th|ose as w|
|00001a60| 65 6c 6c 2c 20 79 6f 75 | 20 63 61 6e 3a 0a 58 2e |ell, you| can:.X.|
|00001a70| 50 50 0a 58 2e 74 69 2b | 35 6e 0a 7a 69 70 20 73 |PP.X.ti+|5n.zip s|
|00001a80| 74 75 66 66 20 2e 2a 20 | 2a 0a 58 2e 50 50 0a 58 |tuff .* |*.X.PP.X|
|00001a90| 45 76 65 6e 20 74 68 69 | 73 20 77 69 6c 6c 20 6e |Even thi|s will n|
|00001aa0| 6f 74 20 69 6e 63 6c 75 | 64 65 20 61 6e 79 20 73 |ot inclu|de any s|
|00001ab0| 75 62 64 69 72 65 63 74 | 6f 72 69 65 73 20 74 68 |ubdirect|ories th|
|00001ac0| 61 74 20 61 72 65 20 69 | 6e 20 74 68 65 20 63 75 |at are i|n the cu|
|00001ad0| 72 72 65 6e 74 0a 64 69 | 72 65 63 74 6f 72 79 2e |rrent.di|rectory.|
|00001ae0| 20 20 54 6f 20 7a 69 70 | 20 75 70 20 61 6e 20 65 | To zip| up an e|
|00001af0| 6e 74 69 72 65 20 64 69 | 72 65 63 74 6f 72 79 2c |ntire di|rectory,|
|00001b00| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 3a 0a 58 2e | the com|mand:.X.|
|00001b10| 50 50 0a 58 2e 74 69 2b | 35 6e 0a 7a 69 70 20 2d |PP.X.ti+|5n.zip -|
|00001b20| 72 20 66 6f 6f 20 66 6f | 6f 0a 58 2e 50 50 0a 77 |r foo fo|o.X.PP.w|
|00001b30| 69 6c 6c 20 63 72 65 61 | 74 65 20 74 68 65 20 66 |ill crea|te the f|
|00001b40| 69 6c 65 20 22 66 6f 6f | 2e 7a 69 70 22 20 63 6f |ile "foo|.zip" co|
|00001b50| 6e 74 61 69 6e 69 6e 67 | 20 61 6c 6c 20 74 68 65 |ntaining| all the|
|00001b60| 20 66 69 6c 65 73 20 61 | 6e 64 20 64 69 72 65 63 | files a|nd direc|
|00001b70| 74 6f 72 69 65 73 20 69 | 6e 0a 74 68 65 20 64 69 |tories i|n.the di|
|00001b80| 72 65 63 74 6f 72 79 20 | 22 66 6f 6f 22 20 74 68 |rectory |"foo" th|
|00001b90| 61 74 20 69 73 20 69 6e | 20 74 68 65 20 63 75 72 |at is in| the cur|
|00001ba0| 72 65 6e 74 20 64 69 72 | 65 63 74 6f 72 79 2e 20 |rent dir|ectory. |
|00001bb0| 20 54 68 65 20 22 72 22 | 20 6f 70 74 69 6f 6e 20 | The "r"| option |
|00001bc0| 6d 65 61 6e 73 0a 72 65 | 63 75 72 73 65 20 74 68 |means.re|curse th|
|00001bd0| 72 6f 75 67 68 20 74 68 | 65 20 64 69 72 65 63 74 |rough th|e direct|
|00001be0| 6f 72 79 20 73 74 72 75 | 63 74 75 72 65 2e 20 20 |ory stru|cture. |
|00001bf0| 49 6e 20 74 68 69 73 20 | 63 61 73 65 2c 20 61 6c |In this |case, al|
|00001c00| 6c 20 74 68 65 0a 66 69 | 6c 65 73 20 61 6e 64 20 |l the.fi|les and |
|00001c10| 64 69 72 65 63 74 6f 72 | 69 65 73 20 69 6e 20 66 |director|ies in f|
|00001c20| 6f 6f 20 61 72 65 20 7a | 69 70 70 65 64 2c 20 69 |oo are z|ipped, i|
|00001c30| 6e 63 6c 75 64 69 6e 67 | 20 74 68 65 20 6f 6e 65 |ncluding| the one|
|00001c40| 73 20 74 68 61 74 20 73 | 74 61 72 74 20 77 69 74 |s that s|tart wit|
|00001c50| 68 0a 61 20 22 2e 22 2c | 20 73 69 6e 63 65 20 74 |h.a ".",| since t|
|00001c60| 68 65 20 72 65 63 75 72 | 73 69 6f 6e 20 64 6f 65 |he recur|sion doe|
|00001c70| 73 20 6e 6f 74 20 75 73 | 65 20 74 68 65 20 73 68 |s not us|e the sh|
|00001c80| 65 6c 6c 27 73 20 66 69 | 6c 65 2d 6e 61 6d 65 20 |ell's fi|le-name |
|00001c90| 73 75 62 73 74 69 74 75 | 74 69 6f 6e 2e 0a 59 6f |substitu|tion..Yo|
|00001ca0| 75 20 73 68 6f 75 6c 64 | 20 6e 6f 74 20 75 73 65 |u should| not use|
|00001cb0| 20 2d 72 20 77 69 74 68 | 20 74 68 65 20 6e 61 6d | -r with| the nam|
|00001cc0| 65 20 22 2e 2a 22 2c 20 | 73 69 6e 63 65 20 74 68 |e ".*", |since th|
|00001cd0| 61 74 20 6d 61 74 63 68 | 65 73 20 22 2e 2e 22 20 |at match|es ".." |
|00001ce0| 77 68 69 63 68 20 77 69 | 6c 6c 0a 61 74 74 65 6d |which wi|ll.attem|
|00001cf0| 70 74 20 74 6f 20 7a 69 | 70 20 75 70 20 74 68 65 |pt to zi|p up the|
|00001d00| 20 70 61 72 65 6e 74 20 | 64 69 72 65 63 74 6f 72 | parent |director|
|00001d10| 79 2d 2d 70 72 6f 62 61 | 62 6c 79 20 6e 6f 74 20 |y--proba|bly not |
|00001d20| 77 68 61 74 20 77 61 73 | 20 69 6e 74 65 6e 64 65 |what was| intende|
|00001d30| 64 2e 0a 58 2e 50 50 0a | 59 6f 75 20 6d 61 79 20 |d..X.PP.|You may |
|00001d40| 77 61 6e 74 20 74 6f 20 | 6d 61 6b 65 20 61 20 7a |want to |make a z|
|00001d50| 69 70 20 66 69 6c 65 20 | 74 68 61 74 20 63 6f 6e |ip file |that con|
|00001d60| 74 61 69 6e 73 20 74 68 | 65 20 66 69 6c 65 73 20 |tains th|e files |
|00001d70| 69 6e 20 66 6f 6f 2c 20 | 62 75 74 20 6e 6f 74 20 |in foo, |but not |
|00001d80| 72 65 63 6f 72 64 0a 74 | 68 65 20 64 69 72 65 63 |record.t|he direc|
|00001d90| 74 6f 72 79 20 6e 61 6d | 65 2c 20 66 6f 6f 2e 20 |tory nam|e, foo. |
|00001da0| 20 59 6f 75 20 63 61 6e | 20 75 73 65 20 74 68 65 | You can| use the|
|00001db0| 20 2d 6a 20 28 6a 75 6e | 6b 20 70 61 74 68 29 20 | -j (jun|k path) |
|00001dc0| 6f 70 74 69 6f 6e 20 74 | 6f 20 6c 65 61 76 65 20 |option t|o leave |
|00001dd0| 6f 66 66 0a 74 68 65 20 | 70 61 74 68 3a 0a 58 2e |off.the |path:.X.|
|00001de0| 50 50 0a 58 2e 74 69 2b | 35 6e 0a 7a 69 70 20 2d |PP.X.ti+|5n.zip -|
|00001df0| 6a 20 66 6f 6f 20 66 6f | 6f 2f 2a 0a 58 2e 50 50 |j foo fo|o/*.X.PP|
|00001e00| 0a 54 68 65 20 2d 79 20 | 6f 70 74 69 6f 6e 20 28 |.The -y |option (|
|00001e10| 6f 6e 6c 79 20 75 6e 64 | 65 72 20 55 6e 69 78 29 |only und|er Unix)|
|00001e20| 20 77 69 6c 6c 20 73 74 | 6f 72 65 20 73 79 6d 62 | will st|ore symb|
|00001e30| 6f 6c 69 63 20 6c 69 6e | 6b 73 20 61 73 20 73 75 |olic lin|ks as su|
|00001e40| 63 68 20 69 6e 20 74 68 | 65 0a 7a 69 70 20 66 69 |ch in th|e.zip fi|
|00001e50| 6c 65 2c 20 69 6e 73 74 | 65 61 64 20 6f 66 20 63 |le, inst|ead of c|
|00001e60| 6f 6d 70 72 65 73 73 69 | 6e 67 20 61 6e 64 20 73 |ompressi|ng and s|
|00001e70| 74 6f 72 69 6e 67 20 74 | 68 65 20 66 69 6c 65 20 |toring t|he file |
|00001e80| 72 65 66 65 72 72 65 64 | 20 74 6f 20 69 6e 20 74 |referred| to in t|
|00001e90| 68 65 20 6c 69 6e 6b 2e | 0a 58 2e 50 50 0a 59 6f |he link.|.X.PP.Yo|
|00001ea0| 75 20 6d 69 67 68 74 20 | 62 65 20 7a 69 70 70 69 |u might |be zippi|
|00001eb0| 6e 67 20 74 6f 20 73 61 | 76 65 20 64 69 73 6b 20 |ng to sa|ve disk |
|00001ec0| 73 70 61 63 65 2c 20 69 | 6e 20 77 68 69 63 68 20 |space, i|n which |
|00001ed0| 63 61 73 65 20 79 6f 75 | 20 63 6f 75 6c 64 3a 0a |case you| could:.|
|00001ee0| 58 2e 50 50 0a 58 2e 74 | 69 2b 35 6e 0a 7a 69 70 |X.PP.X.t|i+5n.zip|
|00001ef0| 20 2d 72 6d 20 66 6f 6f | 20 66 6f 6f 0a 58 2e 50 | -rm foo| foo.X.P|
|00001f00| 50 0a 77 68 65 72 65 20 | 74 68 65 20 22 6d 22 20 |P.where |the "m" |
|00001f10| 6f 70 74 69 6f 6e 20 6d | 65 61 6e 73 20 22 6d 6f |option m|eans "mo|
|00001f20| 76 65 22 2e 20 20 54 68 | 69 73 20 77 69 6c 6c 20 |ve". Th|is will |
|00001f30| 64 65 6c 65 74 65 20 66 | 6f 6f 20 61 6e 64 20 69 |delete f|oo and i|
|00001f40| 74 73 20 63 6f 6e 74 65 | 6e 74 73 0a 61 66 74 65 |ts conte|nts.afte|
|00001f50| 72 20 6d 61 6b 69 6e 67 | 20 66 6f 6f 2e 7a 69 70 |r making| foo.zip|
|00001f60| 2e 20 20 4e 6f 20 64 65 | 6c 65 74 69 6f 6e 73 20 |. No de|letions |
|00001f70| 77 69 6c 6c 20 62 65 20 | 64 6f 6e 65 20 75 6e 74 |will be |done unt|
|00001f80| 69 6c 20 74 68 65 20 7a | 69 70 20 68 61 73 20 63 |il the z|ip has c|
|00001f90| 6f 6d 70 6c 65 74 65 64 | 0a 77 69 74 68 20 6e 6f |ompleted|.with no|
|00001fa0| 20 65 72 72 6f 72 73 2e | 20 20 54 68 69 73 20 6f | errors.| This o|
|00001fb0| 70 74 69 6f 6e 20 69 73 | 20 6f 62 76 69 6f 75 73 |ption is| obvious|
|00001fc0| 6c 79 20 6d 6f 72 65 20 | 64 61 6e 67 65 72 6f 75 |ly more |dangerou|
|00001fd0| 73 20 61 6e 64 20 73 68 | 6f 75 6c 64 20 62 65 0a |s and sh|ould be.|
|00001fe0| 75 73 65 64 20 77 69 74 | 68 20 63 61 72 65 2e 0a |used wit|h care..|
|00001ff0| 58 2e 50 50 0a 49 66 20 | 74 68 65 20 7a 69 70 20 |X.PP.If |the zip |
|00002000| 66 69 6c 65 20 61 6c 72 | 65 61 64 79 20 65 78 69 |file alr|eady exi|
|00002010| 73 74 73 2c 20 74 68 65 | 73 65 20 63 6f 6d 6d 61 |sts, the|se comma|
|00002020| 6e 64 73 20 77 69 6c 6c | 20 72 65 70 6c 61 63 65 |nds will| replace|
|00002030| 20 65 78 69 73 74 69 6e | 67 20 6f 72 20 61 64 64 | existin|g or add|
|00002040| 0a 6e 65 77 20 65 6e 74 | 72 69 65 73 20 74 6f 20 |.new ent|ries to |
|00002050| 74 68 65 20 7a 69 70 20 | 66 69 6c 65 2e 20 20 46 |the zip |file. F|
|00002060| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 69 66 20 79 |or examp|le, if y|
|00002070| 6f 75 20 77 65 72 65 20 | 72 65 61 6c 6c 79 20 73 |ou were |really s|
|00002080| 68 6f 72 74 20 6f 6e 20 | 64 69 73 6b 0a 73 70 61 |hort on |disk.spa|
|00002090| 63 65 2c 20 79 6f 75 20 | 6d 69 67 68 74 20 6e 6f |ce, you |might no|
|000020a0| 74 20 68 61 76 65 20 65 | 6e 6f 75 67 68 20 72 6f |t have e|nough ro|
|000020b0| 6f 6d 20 73 69 6d 75 6c | 74 61 6e 65 6f 75 73 6c |om simul|taneousl|
|000020c0| 79 20 74 6f 20 68 6f 6c | 64 20 74 68 65 20 64 69 |y to hol|d the di|
|000020d0| 72 65 63 74 6f 72 79 0a | 66 6f 6f 20 61 6e 64 20 |rectory.|foo and |
|000020e0| 74 68 65 20 63 6f 6d 70 | 72 65 73 73 65 64 20 66 |the comp|ressed f|
|000020f0| 6f 6f 2e 7a 69 70 2e 20 | 20 49 6e 20 74 68 69 73 |oo.zip. | In this|
|00002100| 20 63 61 73 65 2c 20 79 | 6f 75 20 63 6f 75 6c 64 | case, y|ou could|
|00002110| 20 64 6f 20 69 74 20 69 | 6e 20 73 74 65 70 73 2e | do it i|n steps.|
|00002120| 20 20 49 66 0a 66 6f 6f | 20 63 6f 6e 74 61 69 6e | If.foo| contain|
|00002130| 65 64 20 74 68 65 20 73 | 75 62 64 69 72 65 63 74 |ed the s|ubdirect|
|00002140| 6f 72 69 65 73 20 74 6f | 6d 2c 20 64 69 63 6b 2c |ories to|m, dick,|
|00002150| 20 61 6e 64 20 68 61 72 | 72 79 2c 20 74 68 65 6e | and har|ry, then|
|00002160| 20 79 6f 75 20 63 6f 75 | 6c 64 3a 0a 58 2e 50 50 | you cou|ld:.X.PP|
|00002170| 0a 58 2e 74 69 2b 35 6e | 0a 7a 69 70 20 2d 72 6d |.X.ti+5n|.zip -rm|
|00002180| 20 66 6f 6f 20 66 6f 6f | 2f 74 6f 6d 0a 58 2e 74 | foo foo|/tom.X.t|
|00002190| 69 2b 35 6e 0a 7a 69 70 | 20 2d 72 6d 20 66 6f 6f |i+5n.zip| -rm foo|
|000021a0| 20 66 6f 6f 2f 64 69 63 | 6b 0a 58 2e 74 69 2b 35 | foo/dic|k.X.ti+5|
|000021b0| 6e 0a 7a 69 70 20 2d 72 | 6d 20 66 6f 6f 20 66 6f |n.zip -r|m foo fo|
|000021c0| 6f 2f 68 61 72 72 79 0a | 58 2e 50 50 0a 77 68 65 |o/harry.|X.PP.whe|
|000021d0| 72 65 20 74 68 65 20 66 | 69 72 73 74 20 63 6f 6d |re the f|irst com|
|000021e0| 6d 61 6e 64 20 77 6f 75 | 6c 64 20 63 72 65 61 74 |mand wou|ld creat|
|000021f0| 65 20 66 6f 6f 2e 7a 69 | 70 2c 20 61 6e 64 20 74 |e foo.zi|p, and t|
|00002200| 68 65 20 6e 65 78 74 20 | 74 77 6f 20 77 6f 75 6c |he next |two woul|
|00002210| 64 20 61 64 64 20 74 6f | 0a 69 74 2e 20 20 41 74 |d add to|.it. At|
|00002220| 20 74 68 65 20 63 6f 6d | 70 6c 65 74 69 6f 6e 20 | the com|pletion |
|00002230| 6f 66 20 65 61 63 68 20 | 7a 69 70 20 63 6f 6d 6d |of each |zip comm|
|00002240| 61 6e 64 2c 20 74 68 65 | 20 64 69 72 65 63 74 6f |and, the| directo|
|00002250| 72 79 20 6a 75 73 74 20 | 7a 69 70 70 65 64 20 77 |ry just |zipped w|
|00002260| 6f 75 6c 64 0a 62 65 20 | 64 65 6c 65 74 65 64 2c |ould.be |deleted,|
|00002270| 20 6d 61 6b 69 6e 67 20 | 72 6f 6f 6d 20 69 6e 20 | making |room in |
|00002280| 77 68 69 63 68 20 74 68 | 65 20 6e 65 78 74 0a 58 |which th|e next.X|
|00002290| 2e 49 20 5a 69 70 0a 63 | 6f 6d 6d 61 6e 64 20 63 |.I Zip.c|ommand c|
|000022a0| 6f 75 6c 64 20 77 6f 72 | 6b 2e 0a 58 2e 53 48 20 |ould wor|k..X.SH |
|000022b0| 22 4d 4f 44 49 46 59 49 | 4e 47 20 45 58 49 53 54 |"MODIFYI|NG EXIST|
|000022c0| 49 4e 47 20 5a 49 50 20 | 46 49 4c 45 53 22 0a 57 |ING ZIP |FILES".W|
|000022d0| 68 65 6e 20 67 69 76 65 | 6e 20 74 68 65 20 6e 61 |hen give|n the na|
|000022e0| 6d 65 20 6f 66 20 61 6e | 20 65 78 69 73 74 69 6e |me of an| existin|
|000022f0| 67 20 7a 69 70 20 66 69 | 6c 65 20 77 69 74 68 20 |g zip fi|le with |
|00002300| 74 68 65 20 61 62 6f 76 | 65 20 63 6f 6d 6d 61 6e |the abov|e comman|
|00002310| 64 73 2c 0a 58 2e 49 20 | 5a 69 70 0a 77 69 6c 6c |ds,.X.I |Zip.will|
|00002320| 20 72 65 70 6c 61 63 65 | 20 69 64 65 6e 74 69 63 | replace| identic|
|00002330| 61 6c 6c 79 20 6e 61 6d | 65 64 20 65 6e 74 72 69 |ally nam|ed entri|
|00002340| 65 73 20 69 6e 20 74 68 | 65 0a 58 2e 49 20 5a 69 |es in th|e.X.I Zi|
|00002350| 70 0a 66 69 6c 65 20 6f | 72 20 61 64 64 20 65 6e |p.file o|r add en|
|00002360| 74 72 69 65 73 20 66 6f | 72 0a 6e 65 77 20 6e 61 |tries fo|r.new na|
|00002370| 6d 65 73 2e 20 20 46 6f | 72 20 65 78 61 6d 70 6c |mes. Fo|r exampl|
|00002380| 65 2c 20 69 66 20 66 6f | 6f 2e 7a 69 70 20 65 78 |e, if fo|o.zip ex|
|00002390| 69 73 74 73 20 61 6e 64 | 20 63 6f 6e 74 61 69 6e |ists and| contain|
|000023a0| 73 20 66 6f 6f 2f 66 69 | 6c 65 31 20 61 6e 64 0a |s foo/fi|le1 and.|
|000023b0| 66 6f 6f 2f 66 69 6c 65 | 32 2c 20 61 6e 64 20 74 |foo/file|2, and t|
|000023c0| 68 65 20 64 69 72 65 63 | 74 6f 72 79 20 66 6f 6f |he direc|tory foo|
|000023d0| 20 63 6f 6e 74 61 69 6e | 73 20 74 68 65 20 66 69 | contain|s the fi|
|000023e0| 6c 65 73 20 66 6f 6f 2f | 66 69 6c 65 31 20 61 6e |les foo/|file1 an|
|000023f0| 64 20 66 6f 6f 2f 66 69 | 6c 65 33 2c 0a 74 68 65 |d foo/fi|le3,.the|
|00002400| 6e 3a 0a 58 2e 50 50 0a | 58 2e 74 69 2b 35 6e 0a |n:.X.PP.|X.ti+5n.|
|00002410| 7a 69 70 20 2d 72 20 66 | 6f 6f 20 66 6f 6f 0a 58 |zip -r f|oo foo.X|
|00002420| 2e 50 50 0a 77 69 6c 6c | 20 72 65 70 6c 61 63 65 |.PP.will| replace|
|00002430| 20 66 6f 6f 2f 66 69 6c | 65 31 20 69 6e 20 66 6f | foo/fil|e1 in fo|
|00002440| 6f 2e 7a 69 70 20 61 6e | 64 20 61 64 64 20 66 6f |o.zip an|d add fo|
|00002450| 6f 2f 66 69 6c 65 33 20 | 74 6f 20 66 6f 6f 2e 7a |o/file3 |to foo.z|
|00002460| 69 70 2e 20 20 41 66 74 | 65 72 0a 74 68 69 73 2c |ip. Aft|er.this,|
|00002470| 20 66 6f 6f 2e 7a 69 70 | 20 63 6f 6e 74 61 69 6e | foo.zip| contain|
|00002480| 73 20 66 6f 6f 2f 66 69 | 6c 65 31 2c 20 66 6f 6f |s foo/fi|le1, foo|
|00002490| 2f 66 69 6c 65 32 2c 20 | 61 6e 64 20 66 6f 6f 2f |/file2, |and foo/|
|000024a0| 66 69 6c 65 33 2c 20 77 | 69 74 68 20 66 6f 6f 2f |file3, w|ith foo/|
|000024b0| 66 69 6c 65 32 0a 75 6e | 63 68 61 6e 67 65 64 20 |file2.un|changed |
|000024c0| 66 72 6f 6d 20 62 65 66 | 6f 72 65 2e 0a 58 2e 50 |from bef|ore..X.P|
|000024d0| 50 0a 57 68 65 6e 20 63 | 68 61 6e 67 69 6e 67 20 |P.When c|hanging |
|000024e0| 61 6e 20 65 78 69 73 74 | 69 6e 67 20 7a 69 70 20 |an exist|ing zip |
|000024f0| 66 69 6c 65 2c 0a 58 2e | 49 20 5a 69 70 0a 77 69 |file,.X.|I Zip.wi|
|00002500| 6c 6c 20 77 72 69 74 65 | 20 61 20 74 65 6d 70 6f |ll write| a tempo|
|00002510| 72 61 72 79 20 66 69 6c | 65 20 77 69 74 68 0a 74 |rary fil|e with.t|
|00002520| 68 65 20 6e 65 77 20 63 | 6f 6e 74 65 6e 74 73 2c |he new c|ontents,|
|00002530| 20 61 6e 64 20 6f 6e 6c | 79 20 72 65 70 6c 61 63 | and onl|y replac|
|00002540| 65 20 74 68 65 20 6f 6c | 64 20 6f 6e 65 20 77 68 |e the ol|d one wh|
|00002550| 65 6e 20 74 68 65 20 7a | 69 70 20 68 61 73 20 63 |en the z|ip has c|
|00002560| 6f 6d 70 6c 65 74 65 64 | 0a 77 69 74 68 20 6e 6f |ompleted|.with no|
|00002570| 20 65 72 72 6f 72 73 2e | 20 20 41 6c 73 6f 2c 20 | errors.| Also, |
|00002580| 74 68 65 20 74 77 6f 20 | 6d 65 74 68 6f 64 73 2c |the two |methods,|
|00002590| 20 73 68 72 69 6e 6b 20 | 61 6e 64 20 69 6d 70 6c | shrink |and impl|
|000025a0| 6f 64 65 2c 20 63 72 65 | 61 74 65 0a 74 65 6d 70 |ode, cre|ate.temp|
|000025b0| 6f 72 61 72 79 20 66 69 | 6c 65 73 20 74 68 61 74 |orary fi|les that|
|000025c0| 20 61 72 65 20 64 65 6c | 65 74 65 64 20 61 66 74 | are del|eted aft|
|000025d0| 65 72 20 65 61 63 68 20 | 66 69 6c 65 20 69 73 20 |er each |file is |
|000025e0| 7a 69 70 70 65 64 2e 20 | 20 59 6f 75 20 63 61 6e |zipped. | You can|
|000025f0| 20 75 73 65 0a 74 68 65 | 20 2d 62 20 6f 70 74 69 | use.the| -b opti|
|00002600| 6f 6e 20 74 6f 20 73 70 | 65 63 69 66 79 20 61 20 |on to sp|ecify a |
|00002610| 64 69 66 66 65 72 65 6e | 74 20 70 61 74 68 20 28 |differen|t path (|
|00002620| 75 73 75 61 6c 6c 79 20 | 61 20 64 69 66 66 65 72 |usually |a differ|
|00002630| 65 6e 74 20 64 65 76 69 | 63 65 29 20 74 6f 0a 70 |ent devi|ce) to.p|
|00002640| 75 74 20 74 68 65 20 74 | 65 6d 70 6f 72 61 72 79 |ut the t|emporary|
|00002650| 20 66 69 6c 65 73 20 69 | 6e 2e 20 20 46 6f 72 20 | files i|n. For |
|00002660| 65 78 61 6d 70 6c 65 3a | 0a 58 2e 50 50 0a 58 2e |example:|.X.PP.X.|
|00002670| 74 69 2b 35 6e 0a 7a 69 | 70 20 2d 62 20 2f 74 6d |ti+5n.zi|p -b /tm|
|00002680| 70 20 73 74 75 66 66 20 | 2a 0a 58 2e 50 50 0a 77 |p stuff |*.X.PP.w|
|00002690| 69 6c 6c 20 70 75 74 20 | 74 68 65 20 74 65 6d 70 |ill put |the temp|
|000026a0| 6f 72 61 72 79 20 7a 69 | 70 20 66 69 6c 65 20 61 |orary zi|p file a|
|000026b0| 6e 64 20 74 68 65 20 74 | 65 6d 70 6f 72 61 72 79 |nd the t|emporary|
|000026c0| 20 63 6f 6d 70 72 65 73 | 73 69 6f 6e 20 66 69 6c | compres|sion fil|
|000026d0| 65 73 20 69 6e 20 74 68 | 65 0a 64 69 72 65 63 74 |es in th|e.direct|
|000026e0| 6f 72 79 20 22 2f 74 6d | 70 22 2c 20 63 6f 70 79 |ory "/tm|p", copy|
|000026f0| 69 6e 67 20 6f 76 65 72 | 20 73 74 75 66 66 2e 7a |ing over| stuff.z|
|00002700| 69 70 20 69 6e 20 74 68 | 65 20 63 75 72 72 65 6e |ip in th|e curren|
|00002710| 74 20 64 69 72 65 63 74 | 6f 72 79 20 77 68 65 6e |t direct|ory when|
|00002720| 0a 64 6f 6e 65 2e 0a 58 | 2e 50 50 0a 49 66 20 79 |.done..X|.PP.If y|
|00002730| 6f 75 20 61 72 65 20 6f | 6e 6c 79 20 61 64 64 69 |ou are o|nly addi|
|00002740| 6e 67 20 65 6e 74 72 69 | 65 73 20 74 6f 20 61 20 |ng entri|es to a |
|00002750| 7a 69 70 20 66 69 6c 65 | 2c 20 6e 6f 74 20 72 65 |zip file|, not re|
|00002760| 70 6c 61 63 69 6e 67 2c | 20 61 6e 64 20 74 68 65 |placing,| and the|
|00002770| 0a 58 2d 67 20 6f 70 74 | 69 6f 6e 20 69 73 20 67 |.X-g opt|ion is g|
|00002780| 69 76 65 6e 2c 20 74 68 | 65 6e 0a 58 2e 49 20 5a |iven, th|en.X.I Z|
|00002790| 69 70 0a 67 72 6f 77 73 | 20 28 61 70 70 65 6e 64 |ip.grows| (append|
|000027a0| 73 20 74 6f 29 20 74 68 | 65 20 66 69 6c 65 20 69 |s to) th|e file i|
|000027b0| 6e 73 74 65 61 64 20 6f | 66 20 63 6f 70 79 69 6e |nstead o|f copyin|
|000027c0| 67 20 69 74 2e 20 20 54 | 68 65 20 64 61 6e 67 65 |g it. T|he dange|
|000027d0| 72 20 6f 66 20 74 68 69 | 73 20 69 73 20 74 68 61 |r of thi|s is tha|
|000027e0| 74 0a 69 66 20 74 68 65 | 20 6f 70 65 72 61 74 69 |t.if the| operati|
|000027f0| 6f 6e 20 66 61 69 6c 73 | 2c 20 74 68 65 20 6f 72 |on fails|, the or|
|00002800| 69 67 69 6e 61 6c 20 7a | 69 70 20 66 69 6c 65 20 |iginal z|ip file |
|00002810| 69 73 20 63 6f 72 72 75 | 70 74 65 64 20 61 6e 64 |is corru|pted and|
|00002820| 20 6c 6f 73 74 2e 0a 58 | 2e 50 50 0a 54 68 65 72 | lost..X|.PP.Ther|
|00002830| 65 20 61 72 65 20 74 77 | 6f 20 6f 74 68 65 72 20 |e are tw|o other |
|00002840| 77 61 79 73 20 74 6f 20 | 63 68 61 6e 67 65 20 6f |ways to |change o|
|00002850| 72 20 61 64 64 20 65 6e | 74 72 69 65 73 20 69 6e |r add en|tries in|
|00002860| 20 61 20 7a 69 70 20 66 | 69 6c 65 20 74 68 61 74 | a zip f|ile that|
|00002870| 20 61 72 65 0a 72 65 73 | 74 72 69 63 74 69 6f 6e | are.res|triction|
|00002880| 73 20 6f 66 20 73 69 6d | 70 6c 65 20 61 64 64 69 |s of sim|ple addi|
|00002890| 74 69 6f 6e 20 6f 72 20 | 72 65 70 6c 61 63 65 6d |tion or |replacem|
|000028a0| 65 6e 74 2e 20 20 54 68 | 65 20 66 69 72 73 74 20 |ent. Th|e first |
|000028b0| 69 73 20 2d 75 20 28 75 | 70 64 61 74 65 29 0a 77 |is -u (u|pdate).w|
|000028c0| 68 69 63 68 20 77 69 6c | 6c 20 61 64 64 20 6e 65 |hich wil|l add ne|
|000028d0| 77 20 65 6e 74 72 69 65 | 73 20 74 6f 20 74 68 65 |w entrie|s to the|
|000028e0| 20 7a 69 70 20 66 69 6c | 65 20 61 73 20 62 65 66 | zip fil|e as bef|
|000028f0| 6f 72 65 20 62 75 74 20 | 77 69 6c 6c 20 72 65 70 |ore but |will rep|
|00002900| 6c 61 63 65 0a 65 78 69 | 73 74 69 6e 67 20 65 6e |lace.exi|sting en|
|00002910| 74 72 69 65 73 20 6f 6e | 6c 79 20 69 66 20 74 68 |tries on|ly if th|
|00002920| 65 20 6d 6f 64 69 66 69 | 65 64 20 64 61 74 65 20 |e modifi|ed date |
|00002930| 6f 66 20 74 68 65 20 66 | 69 6c 65 20 69 73 20 6d |of the f|ile is m|
|00002940| 6f 72 65 20 72 65 63 65 | 6e 74 20 74 68 61 6e 0a |ore rece|nt than.|
|00002950| 74 68 65 20 64 61 74 65 | 20 72 65 63 6f 72 64 65 |the date| recorde|
|00002960| 64 20 66 6f 72 20 74 68 | 61 74 20 6e 61 6d 65 20 |d for th|at name |
|00002970| 69 6e 20 74 68 65 20 7a | 69 70 20 66 69 6c 65 2e |in the z|ip file.|
|00002980| 20 20 46 6f 72 20 65 78 | 61 6d 70 6c 65 3a 0a 58 | For ex|ample:.X|
|00002990| 2e 50 50 0a 58 2e 74 69 | 2b 35 6e 0a 7a 69 70 20 |.PP.X.ti|+5n.zip |
|000029a0| 2d 75 20 73 74 75 66 66 | 20 2a 0a 58 2e 50 50 0a |-u stuff| *.X.PP.|
|000029b0| 77 69 6c 6c 20 61 64 64 | 20 61 6e 79 20 6e 65 77 |will add| any new|
|000029c0| 20 66 69 6c 65 73 20 69 | 6e 20 74 68 65 20 63 75 | files i|n the cu|
|000029d0| 72 72 65 6e 74 20 64 69 | 72 65 63 74 6f 72 79 2c |rrent di|rectory,|
|000029e0| 20 61 6e 64 20 75 70 64 | 61 74 65 20 61 6e 79 20 | and upd|ate any |
|000029f0| 63 68 61 6e 67 65 64 20 | 66 69 6c 65 73 0a 69 6e |changed |files.in|
|00002a00| 20 74 68 65 20 7a 69 70 | 20 66 69 6c 65 20 73 74 | the zip| file st|
|00002a10| 75 66 66 2e 7a 69 70 2e | 20 20 4e 6f 74 65 20 74 |uff.zip.| Note t|
|00002a20| 68 61 74 0a 58 2e 49 20 | 5a 69 70 0a 77 69 6c 6c |hat.X.I |Zip.will|
|00002a30| 20 6e 6f 74 20 74 72 79 | 20 74 6f 20 70 61 63 6b | not try| to pack|
|00002a40| 20 73 74 75 66 66 2e 7a | 69 70 20 69 6e 74 6f 0a | stuff.z|ip into.|
|00002a50| 69 74 73 65 6c 66 20 77 | 68 65 6e 20 79 6f 75 20 |itself w|hen you |
|00002a60| 64 6f 20 74 68 69 73 2e | 20 0a 58 2e 49 20 5a 69 |do this.| .X.I Zi|
|00002a70| 70 0a 77 69 6c 6c 20 61 | 6c 77 61 79 73 20 65 78 |p.will a|lways ex|
|00002a80| 63 6c 75 64 65 20 74 68 | 65 20 7a 69 70 20 66 69 |clude th|e zip fi|
|00002a90| 6c 65 20 66 72 6f 6d 20 | 74 68 65 20 66 69 6c 65 |le from |the file|
|00002aa0| 73 20 6f 6e 20 77 68 69 | 63 68 20 74 6f 20 62 65 |s on whi|ch to be|
|00002ab0| 20 6f 70 65 72 61 74 65 | 64 2e 0a 58 2e 50 50 0a | operate|d..X.PP.|
|00002ac0| 54 68 65 20 73 65 63 6f | 6e 64 20 72 65 73 74 72 |The seco|nd restr|
|00002ad0| 69 63 74 69 6f 6e 20 69 | 73 20 2d 66 20 28 66 72 |iction i|s -f (fr|
|00002ae0| 65 73 68 65 6e 29 20 77 | 68 69 63 68 2c 20 6c 69 |eshen) w|hich, li|
|00002af0| 6b 65 20 75 70 64 61 74 | 65 2c 20 77 69 6c 6c 20 |ke updat|e, will |
|00002b00| 6f 6e 6c 79 20 72 65 70 | 6c 61 63 65 0a 65 6e 74 |only rep|lace.ent|
|00002b10| 72 69 65 73 20 77 69 74 | 68 20 6e 65 77 65 72 20 |ries wit|h newer |
|00002b20| 66 69 6c 65 73 3b 20 75 | 6e 6c 69 6b 65 20 75 70 |files; u|nlike up|
|00002b30| 64 61 74 65 2c 20 77 69 | 6c 6c 20 6e 6f 74 20 61 |date, wi|ll not a|
|00002b40| 64 64 20 66 69 6c 65 73 | 20 74 68 61 74 20 61 72 |dd files| that ar|
|00002b50| 65 20 6e 6f 74 0a 61 6c | 72 65 61 64 79 20 69 6e |e not.al|ready in|
|00002b60| 20 74 68 65 20 7a 69 70 | 20 66 69 6c 65 2e 20 20 | the zip| file. |
|00002b70| 46 6f 72 20 74 68 69 73 | 20 6f 70 74 69 6f 6e 2c |For this| option,|
|00002b80| 20 79 6f 75 20 6d 61 79 | 20 77 61 6e 74 20 74 6f | you may| want to|
|00002b90| 20 73 69 6d 70 6c 79 20 | 66 72 65 73 68 65 6e 20 | simply |freshen |
|00002ba0| 61 6c 6c 0a 6f 66 20 74 | 68 65 20 66 69 6c 65 73 |all.of t|he files|
|00002bb0| 20 74 68 61 74 20 61 72 | 65 20 69 6e 20 74 68 65 | that ar|e in the|
|00002bc0| 20 73 70 65 63 69 66 69 | 65 64 20 7a 69 70 20 66 | specifi|ed zip f|
|00002bd0| 69 6c 65 2e 20 20 54 6f | 20 64 6f 20 74 68 69 73 |ile. To| do this|
|00002be0| 20 79 6f 75 20 77 6f 75 | 6c 64 20 73 69 6d 70 6c | you wou|ld simpl|
|00002bf0| 79 3a 0a 58 2e 50 50 0a | 58 2e 74 69 2b 35 6e 0a |y:.X.PP.|X.ti+5n.|
|00002c00| 7a 69 70 20 2d 66 20 66 | 6f 6f 0a 58 2e 50 50 0a |zip -f f|oo.X.PP.|
|00002c10| 4e 6f 74 65 20 74 68 61 | 74 20 74 68 65 20 2d 66 |Note tha|t the -f|
|00002c20| 20 6f 70 74 69 6f 6e 20 | 77 69 74 68 20 6e 6f 20 | option |with no |
|00002c30| 61 72 67 75 6d 65 6e 74 | 73 20 66 72 65 73 68 65 |argument|s freshe|
|00002c40| 6e 73 20 61 6c 6c 20 74 | 68 65 20 65 6e 74 72 69 |ns all t|he entri|
|00002c50| 65 73 20 69 6e 20 74 68 | 65 0a 7a 69 70 20 66 69 |es in th|e.zip fi|
|00002c60| 6c 65 2e 20 20 54 68 65 | 20 73 61 6d 65 20 69 73 |le. The| same is|
|00002c70| 20 74 72 75 65 20 6f 66 | 20 2d 75 2c 20 61 6e 64 | true of| -u, and|
|00002c80| 20 68 65 6e 63 65 20 22 | 7a 69 70 20 2d 75 20 66 | hence "|zip -u f|
|00002c90| 6f 6f 22 20 61 6e 64 20 | 22 7a 69 70 20 2d 66 20 |oo" and |"zip -f |
|00002ca0| 66 6f 6f 22 0a 62 6f 74 | 68 20 64 6f 20 74 68 65 |foo".bot|h do the|
|00002cb0| 20 73 61 6d 65 20 74 68 | 69 6e 67 2e 0a 58 2e 50 | same th|ing..X.P|
|00002cc0| 50 0a 54 68 69 73 20 63 | 6f 6d 6d 61 6e 64 20 73 |P.This c|ommand s|
|00002cd0| 68 6f 75 6c 64 0a 62 65 | 20 72 75 6e 20 66 72 6f |hould.be| run fro|
|00002ce0| 6d 20 74 68 65 20 73 61 | 6d 65 20 64 69 72 65 63 |m the sa|me direc|
|00002cf0| 74 6f 72 79 20 66 72 6f | 6d 20 77 68 69 63 68 20 |tory fro|m which |
|00002d00| 74 68 65 20 6f 72 69 67 | 69 6e 61 6c 20 7a 69 70 |the orig|inal zip|
|00002d10| 20 63 6f 6d 6d 61 6e 64 | 20 77 61 73 20 72 75 6e | command| was run|
|00002d20| 2c 0a 73 69 6e 63 65 20 | 70 61 74 68 73 20 73 74 |,.since |paths st|
|00002d30| 6f 72 65 64 20 69 6e 20 | 7a 69 70 20 66 69 6c 65 |ored in |zip file|
|00002d40| 73 20 61 72 65 20 61 6c | 77 61 79 73 20 72 65 6c |s are al|ways rel|
|00002d50| 61 74 69 76 65 2e 0a 58 | 2e 50 50 0a 41 6e 6f 74 |ative..X|.PP.Anot|
|00002d60| 68 65 72 20 72 65 73 74 | 72 69 63 74 69 6f 6e 20 |her rest|riction |
|00002d70| 74 68 61 74 20 63 61 6e | 20 62 65 20 75 73 65 64 |that can| be used|
|00002d80| 20 77 69 74 68 20 61 64 | 64 69 6e 67 2c 20 75 70 | with ad|ding, up|
|00002d90| 64 61 74 69 6e 67 2c 20 | 6f 72 20 66 72 65 73 68 |dating, |or fresh|
|00002da0| 65 6e 69 6e 67 20 69 73 | 0a 58 2d 74 20 28 74 69 |ening is|.X-t (ti|
|00002db0| 6d 65 29 2c 20 77 68 69 | 63 68 20 77 69 6c 6c 20 |me), whi|ch will |
|00002dc0| 6e 6f 74 20 6f 70 65 72 | 61 74 65 20 6f 6e 20 66 |not oper|ate on f|
|00002dd0| 69 6c 65 73 20 6d 6f 64 | 69 66 69 65 64 20 65 61 |iles mod|ified ea|
|00002de0| 72 6c 69 65 72 20 74 68 | 61 6e 20 74 68 65 20 73 |rlier th|an the s|
|00002df0| 70 65 63 69 66 69 65 64 | 0a 64 61 74 65 2e 20 20 |pecified|.date. |
|00002e00| 46 6f 72 20 65 78 61 6d | 70 6c 65 3a 0a 58 2e 50 |For exam|ple:.X.P|
|00002e10| 50 0a 58 2e 74 69 2b 35 | 6e 0a 7a 69 70 20 2d 72 |P.X.ti+5|n.zip -r|
|00002e20| 74 20 31 32 30 37 39 31 | 20 69 6e 66 61 6d 79 20 |t 120791| infamy |
|00002e30| 66 6f 6f 0a 58 2e 50 50 | 0a 77 69 6c 6c 20 61 64 |foo.X.PP|.will ad|
|00002e40| 64 20 61 6c 6c 20 74 68 | 65 20 66 69 6c 65 73 20 |d all th|e files |
|00002e50| 69 6e 20 66 6f 6f 20 61 | 6e 64 20 69 74 73 20 73 |in foo a|nd its s|
|00002e60| 75 62 64 69 72 65 63 74 | 6f 72 69 65 73 20 74 68 |ubdirect|ories th|
|00002e70| 61 74 20 77 65 72 65 20 | 6c 61 73 74 20 6d 6f 64 |at were |last mod|
|00002e80| 69 66 69 65 64 0a 6f 6e | 20 44 65 63 65 6d 62 65 |ified.on| Decembe|
|00002e90| 72 20 37 2c 20 31 39 39 | 31 2c 20 6f 72 20 6c 61 |r 7, 199|1, or la|
|00002ea0| 74 65 72 20 74 6f 20 74 | 68 65 20 7a 69 70 20 66 |ter to t|he zip f|
|00002eb0| 69 6c 65 20 69 6e 66 61 | 6d 79 2e 7a 69 70 2e 0a |ile infa|my.zip..|
|00002ec0| 58 2e 50 50 0a 41 6c 73 | 6f 2c 20 66 69 6c 65 73 |X.PP.Als|o, files|
|00002ed0| 20 63 61 6e 20 62 65 20 | 65 78 70 6c 69 63 69 74 | can be |explicit|
|00002ee0| 6c 79 20 65 78 63 6c 75 | 64 65 64 20 75 73 69 6e |ly exclu|ded usin|
|00002ef0| 67 20 74 68 65 20 2d 78 | 20 6f 70 74 69 6f 6e 3a |g the -x| option:|
|00002f00| 0a 58 2e 50 50 0a 58 2e | 74 69 2b 35 6e 0a 7a 69 |.X.PP.X.|ti+5n.zi|
|00002f10| 70 20 2d 72 20 66 6f 6f | 20 66 6f 6f 20 2d 78 20 |p -r foo| foo -x |
|00002f20| 5c 5c 2a 2e 6f 0a 58 2e | 50 50 0a 77 68 69 63 68 |\\*.o.X.|PP.which|
|00002f30| 20 77 69 6c 6c 20 7a 69 | 70 20 75 70 20 74 68 65 | will zi|p up the|
|00002f40| 20 63 6f 6e 74 65 6e 74 | 73 20 6f 66 20 66 6f 6f | content|s of foo|
|00002f50| 20 69 6e 74 6f 20 66 6f | 6f 2e 7a 69 70 20 62 75 | into fo|o.zip bu|
|00002f60| 74 20 65 78 63 6c 75 64 | 65 20 61 6c 6c 20 74 68 |t exclud|e all th|
|00002f70| 65 0a 66 69 6c 65 73 20 | 74 68 61 74 20 65 6e 64 |e.files |that end|
|00002f80| 20 69 6e 20 22 2e 6f 22 | 2e 20 20 48 65 72 65 20 | in ".o"|. Here |
|00002f90| 74 68 65 20 62 61 63 6b | 73 6c 61 73 68 20 63 61 |the back|slash ca|
|00002fa0| 75 73 65 73 0a 58 2e 49 | 20 5a 69 70 0a 74 6f 20 |uses.X.I| Zip.to |
|00002fb0| 6d 61 74 63 68 20 66 69 | 6c 65 20 6e 61 6d 65 73 |match fi|le names|
|00002fc0| 0a 74 68 61 74 20 77 65 | 72 65 20 66 6f 75 6e 64 |.that we|re found|
|00002fd0| 20 77 68 65 6e 20 66 6f | 6f 20 77 61 73 20 73 65 | when fo|o was se|
|00002fe0| 61 72 63 68 65 64 2e 0a | 58 2e 50 50 0a 54 68 65 |arched..|X.PP.The|
|00002ff0| 20 6c 61 73 74 20 6f 70 | 65 72 61 74 69 6f 6e 20 | last op|eration |
|00003000| 69 73 20 2d 64 20 28 64 | 65 6c 65 74 65 29 20 77 |is -d (d|elete) w|
|00003010| 68 69 63 68 20 77 69 6c | 6c 20 72 65 6d 6f 76 65 |hich wil|l remove|
|00003020| 20 65 6e 74 72 69 65 73 | 20 66 72 6f 6d 20 61 20 | entries| from a |
|00003030| 7a 69 70 20 66 69 6c 65 | 2e 0a 41 6e 20 65 78 61 |zip file|..An exa|
|00003040| 6d 70 6c 65 20 6d 69 67 | 68 74 20 62 65 3a 0a 58 |mple mig|ht be:.X|
|00003050| 2e 50 50 0a 58 2e 74 69 | 2b 35 6e 0a 7a 69 70 20 |.PP.X.ti|+5n.zip |
|00003060| 2d 64 20 66 6f 6f 20 66 | 6f 6f 2f 74 6f 6d 2f 6a |-d foo f|oo/tom/j|
|00003070| 75 6e 6b 20 66 6f 6f 2f | 68 61 72 72 79 2f 5c 5c |unk foo/|harry/\\|
|00003080| 2a 20 5c 5c 2a 2e 6f 0a | 58 2e 50 50 0a 77 68 69 |* \\*.o.|X.PP.whi|
|00003090| 63 68 20 77 69 6c 6c 20 | 72 65 6d 6f 76 65 20 74 |ch will |remove t|
|000030a0| 68 65 20 65 6e 74 72 79 | 20 66 6f 6f 2f 74 6f 6d |he entry| foo/tom|
|000030b0| 2f 6a 75 6e 6b 2c 20 61 | 6c 6c 20 6f 66 20 74 68 |/junk, a|ll of th|
|000030c0| 65 20 66 69 6c 65 73 20 | 74 68 61 74 20 73 74 61 |e files |that sta|
|000030d0| 72 74 20 77 69 74 68 0a | 58 22 66 6f 6f 2f 68 61 |rt with.|X"foo/ha|
|000030e0| 72 72 79 2f 22 2c 20 61 | 6e 64 20 61 6c 6c 20 6f |rry/", a|nd all o|
|000030f0| 66 20 74 68 65 20 66 69 | 6c 65 73 20 74 68 61 74 |f the fi|les that|
|00003100| 20 65 6e 64 20 77 69 74 | 68 20 22 2e 6f 22 20 28 | end wit|h ".o" (|
|00003110| 69 6e 20 61 6e 79 20 70 | 61 74 68 29 2e 20 20 4e |in any p|ath). N|
|00003120| 6f 74 65 0a 74 68 61 74 | 20 6f 6e 63 65 20 61 67 |ote.that| once ag|
|00003130| 61 69 6e 2c 20 74 68 65 | 20 73 68 65 6c 6c 20 65 |ain, the| shell e|
|00003140| 78 70 61 6e 73 69 6f 6e | 20 68 61 73 20 62 65 65 |xpansion| has bee|
|00003150| 6e 20 69 6e 68 69 62 69 | 74 65 64 20 77 69 74 68 |n inhibi|ted with|
|00003160| 20 62 61 63 6b 73 6c 61 | 73 68 65 73 2c 20 73 6f | backsla|shes, so|
|00003170| 0a 74 68 61 74 0a 58 2e | 49 20 5a 69 70 0a 63 61 |.that.X.|I Zip.ca|
|00003180| 6e 20 73 65 65 20 74 68 | 65 20 61 73 74 65 72 69 |n see th|e asteri|
|00003190| 73 6b 73 2e 20 20 0a 58 | 2e 49 20 5a 69 70 0a 63 |sks. .X|.I Zip.c|
|000031a0| 61 6e 20 74 68 65 6e 20 | 6d 61 74 63 68 20 6f 6e |an then |match on|
|000031b0| 20 74 68 65 20 63 6f 6e | 74 65 6e 74 73 20 6f 66 | the con|tents of|
|000031c0| 20 74 68 65 20 7a 69 70 | 0a 66 69 6c 65 20 69 6e | the zip|.file in|
|000031d0| 73 74 65 61 64 20 6f 66 | 20 74 68 65 20 63 6f 6e |stead of| the con|
|000031e0| 74 65 6e 74 73 20 6f 66 | 20 74 68 65 20 63 75 72 |tents of| the cur|
|000031f0| 72 65 6e 74 20 64 69 72 | 65 63 74 6f 72 79 2e 0a |rent dir|ectory..|
|00003200| 58 2e 50 50 0a 55 6e 64 | 65 72 20 4d 53 44 4f 53 |X.PP.Und|er MSDOS|
|00003210| 2c 20 2d 64 20 69 73 20 | 63 61 73 65 20 73 65 6e |, -d is |case sen|
|00003220| 73 69 74 69 76 65 20 77 | 68 65 6e 20 69 74 20 6d |sitive w|hen it m|
|00003230| 61 74 63 68 65 73 20 6e | 61 6d 65 73 20 69 6e 20 |atches n|ames in |
|00003240| 74 68 65 20 7a 69 70 20 | 66 69 6c 65 2e 0a 54 68 |the zip |file..Th|
|00003250| 69 73 20 61 6c 6c 6f 77 | 73 20 64 65 6c 65 74 69 |is allow|s deleti|
|00003260| 6e 67 20 6e 61 6d 65 73 | 20 74 68 61 74 20 77 65 |ng names| that we|
|00003270| 72 65 20 7a 69 70 70 65 | 64 20 6f 6e 20 6f 74 68 |re zippe|d on oth|
|00003280| 65 72 20 73 79 73 74 65 | 6d 73 2c 20 62 75 74 20 |er syste|ms, but |
|00003290| 72 65 71 75 69 72 65 73 | 0a 74 68 61 74 20 74 68 |requires|.that th|
|000032a0| 65 20 6e 61 6d 65 73 20 | 62 65 20 65 6e 74 65 72 |e names |be enter|
|000032b0| 65 64 20 69 6e 20 75 70 | 70 65 72 20 63 61 73 65 |ed in up|per case|
|000032c0| 20 69 66 20 74 68 65 79 | 20 77 65 72 65 20 7a 69 | if they| were zi|
|000032d0| 70 70 65 64 20 6f 6e 20 | 61 6e 20 4d 53 44 4f 53 |pped on |an MSDOS|
|000032e0| 0a 73 79 73 74 65 6d 2c | 20 73 6f 20 74 68 61 74 |.system,| so that|
|000032f0| 20 74 68 65 20 6e 61 6d | 65 73 20 63 61 6e 20 62 | the nam|es can b|
|00003300| 65 20 66 6f 75 6e 64 20 | 69 6e 20 74 68 65 20 7a |e found |in the z|
|00003310| 69 70 20 66 69 6c 65 20 | 61 6e 64 20 64 65 6c 65 |ip file |and dele|
|00003320| 74 65 64 2e 0a 58 2e 53 | 48 20 22 4d 4f 52 45 20 |ted..X.S|H "MORE |
|00003330| 4f 50 54 49 4f 4e 53 22 | 0a 41 73 20 6d 65 6e 74 |OPTIONS"|.As ment|
|00003340| 69 6f 6e 65 64 20 62 65 | 66 6f 72 65 2c 0a 58 2e |ioned be|fore,.X.|
|00003350| 49 20 5a 69 70 0a 77 69 | 6c 6c 20 75 73 65 20 74 |I Zip.wi|ll use t|
|00003360| 68 65 20 62 65 73 74 20 | 6f 66 20 74 77 6f 20 6d |he best |of two m|
|00003370| 65 74 68 6f 64 73 3a 20 | 73 68 72 69 6e 6b 20 6f |ethods: |shrink o|
|00003380| 72 20 69 6d 70 6c 6f 64 | 65 2e 0a 55 73 75 61 6c |r implod|e..Usual|
|00003390| 6c 79 20 69 6d 70 6c 6f | 64 65 20 69 73 20 62 65 |ly implo|de is be|
|000033a0| 74 74 65 72 2c 20 62 75 | 74 20 73 6f 6d 65 74 69 |tter, bu|t someti|
|000033b0| 6d 65 73 20 73 68 72 69 | 6e 6b 20 69 73 20 62 65 |mes shri|nk is be|
|000033c0| 74 74 65 72 2c 20 65 73 | 70 65 63 69 61 6c 6c 79 |tter, es|pecially|
|000033d0| 20 66 6f 72 0a 73 6d 61 | 6c 6c 65 72 20 66 69 6c | for.sma|ller fil|
|000033e0| 65 73 2e 20 20 53 6f 6d | 65 74 69 6d 65 73 20 6e |es. Som|etimes n|
|000033f0| 65 69 74 68 65 72 20 6d | 65 74 68 6f 64 20 70 72 |either m|ethod pr|
|00003400| 6f 64 75 63 65 73 20 61 | 20 70 61 63 6b 65 64 20 |oduces a| packed |
|00003410| 76 65 72 73 69 6f 6e 20 | 73 6d 61 6c 6c 65 72 0a |version |smaller.|
|00003420| 74 68 61 6e 20 74 68 65 | 20 6f 72 69 67 69 6e 61 |than the| origina|
|00003430| 6c 20 66 69 6c 65 2c 20 | 69 6e 20 77 68 69 63 68 |l file, |in which|
|00003440| 20 63 61 73 65 20 69 74 | 20 69 73 20 73 74 6f 72 | case it| is stor|
|00003450| 65 64 20 69 6e 20 74 68 | 65 20 7a 69 70 20 66 69 |ed in th|e zip fi|
|00003460| 6c 65 20 77 69 74 68 20 | 6e 6f 0a 63 6f 6d 70 72 |le with |no.compr|
|00003470| 65 73 73 69 6f 6e 20 28 | 63 61 6c 6c 65 64 20 74 |ession (|called t|
|00003480| 68 65 20 22 73 74 6f 72 | 65 22 20 6d 65 74 68 6f |he "stor|e" metho|
|00003490| 64 29 2e 0a 58 2e 50 50 | 0a 54 68 65 20 6f 70 74 |d)..X.PP|.The opt|
|000034a0| 69 6f 6e 20 2d 73 20 28 | 73 68 72 69 6e 6b 29 20 |ion -s (|shrink) |
|000034b0| 77 69 6c 6c 20 66 6f 72 | 63 65 0a 58 2e 49 20 5a |will for|ce.X.I Z|
|000034c0| 69 70 0a 61 6c 77 61 79 | 73 20 74 6f 20 75 73 65 |ip.alway|s to use|
|000034d0| 20 73 68 72 69 6e 6b 20 | 6f 72 20 73 74 6f 72 65 | shrink |or store|
|000034e0| 2c 20 61 6e 64 20 74 68 | 65 0a 58 2d 69 20 28 69 |, and th|e.X-i (i|
|000034f0| 6d 70 6c 6f 64 65 29 20 | 6f 70 74 69 6f 6e 20 66 |mplode) |option f|
|00003500| 6f 72 63 65 73 0a 58 2e | 49 20 5a 69 70 0a 74 6f |orces.X.|I Zip.to|
|00003510| 20 75 73 65 20 69 6d 70 | 6c 6f 64 65 20 6f 72 20 | use imp|lode or |
|00003520| 73 74 6f 72 65 2e 20 20 | 53 68 72 69 6e 6b 69 6e |store. |Shrinkin|
|00003530| 67 20 69 73 20 66 61 73 | 74 65 72 0a 74 68 61 6e |g is fas|ter.than|
|00003540| 20 69 6d 70 6c 6f 64 69 | 6e 67 2c 20 61 6e 64 20 | implodi|ng, and |
|00003550| 73 6f 20 2d 73 20 6d 69 | 67 68 74 20 62 65 20 75 |so -s mi|ght be u|
|00003560| 73 65 64 20 77 68 65 6e | 20 73 70 65 65 64 20 69 |sed when| speed i|
|00003570| 73 20 6d 6f 72 65 20 69 | 6d 70 6f 72 74 61 6e 74 |s more i|mportant|
|00003580| 20 74 68 61 6e 0a 6f 70 | 74 69 6d 61 6c 20 63 6f | than.op|timal co|
|00003590| 6d 70 72 65 73 73 69 6f | 6e 2e 20 20 49 6d 70 6c |mpressio|n. Impl|
|000035a0| 6f 64 65 20 6f 6e 6c 79 | 20 28 2d 69 29 20 6d 69 |ode only| (-i) mi|
|000035b0| 67 68 74 20 62 65 20 75 | 73 65 64 20 77 68 65 6e |ght be u|sed when|
|000035c0| 20 74 68 65 20 75 6e 7a | 69 70 70 65 72 20 0a 66 | the unz|ipper .f|
|000035d0| 6f 72 20 77 68 69 63 68 | 20 74 68 65 0a 7a 69 70 |or which| the.zip|
|000035e0| 20 66 69 6c 65 20 69 73 | 20 64 65 73 74 69 6e 65 | file is| destine|
|000035f0| 64 20 63 61 6e 20 6f 6e | 6c 79 20 68 61 6e 64 6c |d can on|ly handl|
|00003600| 65 20 69 6d 70 6c 6f 73 | 69 6f 6e 2e 20 20 41 6e |e implos|ion. An|
|00003610| 20 65 78 61 6d 70 6c 65 | 20 6f 66 20 74 68 69 73 | example| of this|
|00003620| 20 69 73 0a 74 68 65 20 | 50 4b 53 46 58 6a 72 20 | is.the |PKSFXjr |
|00003630| 70 72 6f 67 72 61 6d 20 | 74 68 61 74 20 63 6f 6d |program |that com|
|00003640| 65 73 20 77 69 74 68 20 | 50 4b 5a 49 50 2e 20 20 |es with |PKZIP. |
|00003650| 41 6c 73 6f 2c 20 2d 69 | 20 69 73 20 73 6c 69 67 |Also, -i| is slig|
|00003660| 68 74 6c 79 20 66 61 73 | 74 65 72 0a 74 68 61 6e |htly fas|ter.than|
|00003670| 20 69 6d 70 6c 6f 64 69 | 6e 67 20 61 6e 64 20 73 | implodi|ng and s|
|00003680| 68 72 69 6e 6b 69 6e 67 | 20 61 74 20 74 68 65 20 |hrinking| at the |
|00003690| 73 61 6d 65 20 74 69 6d | 65 2e 20 20 46 6f 72 20 |same tim|e. For |
|000036a0| 65 78 61 6d 70 6c 65 3a | 0a 58 2e 50 50 0a 58 2e |example:|.X.PP.X.|
|000036b0| 74 69 2b 35 6e 0a 7a 69 | 70 20 2d 72 73 20 66 6f |ti+5n.zi|p -rs fo|
|000036c0| 6f 20 66 6f 6f 0a 58 2e | 50 50 0a 77 69 6c 6c 20 |o foo.X.|PP.will |
|000036d0| 7a 69 70 20 75 70 20 74 | 68 65 20 64 69 72 65 63 |zip up t|he direc|
|000036e0| 74 6f 72 79 20 66 6f 6f | 20 69 6e 74 6f 20 66 6f |tory foo| into fo|
|000036f0| 6f 2e 7a 69 70 20 75 73 | 69 6e 67 20 6f 6e 6c 79 |o.zip us|ing only|
|00003700| 20 73 68 72 69 6e 6b 20 | 6f 72 20 73 74 6f 72 65 | shrink |or store|
|00003710| 2e 0a 54 68 65 20 73 70 | 65 65 64 20 6f 66 20 69 |..The sp|eed of i|
|00003720| 6d 70 6c 6f 73 69 6f 6e | 20 63 61 6e 20 61 6c 73 |mplosion| can als|
|00003730| 6f 20 62 65 20 63 6f 6e | 74 72 6f 6c 6c 65 64 20 |o be con|trolled |
|00003740| 77 69 74 68 20 6f 70 74 | 69 6f 6e 73 20 2d 30 20 |with opt|ions -0 |
|00003750| 28 66 61 73 74 65 73 74 | 0a 6d 65 74 68 6f 64 20 |(fastest|.method |
|00003760| 62 75 74 20 6c 65 73 73 | 20 63 6f 6d 70 72 65 73 |but less| compres|
|00003770| 73 69 6f 6e 29 20 74 6f | 20 2d 39 20 28 62 65 73 |sion) to| -9 (bes|
|00003780| 74 20 63 6f 6d 70 72 65 | 73 73 69 6f 6e 20 62 75 |t compre|ssion bu|
|00003790| 74 20 73 6c 6f 77 65 72 | 29 2e 20 54 68 65 0a 64 |t slower|). The.d|
|000037a0| 65 66 61 75 6c 74 20 76 | 61 6c 75 65 20 69 73 20 |efault v|alue is |
|000037b0| 2d 35 2e 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 3a |-5. For |example:|
|000037c0| 0a 58 2e 50 50 0a 58 2e | 74 69 2b 35 6e 0a 7a 69 |.X.PP.X.|ti+5n.zi|
|000037d0| 70 20 2d 72 30 20 66 6f | 6f 20 66 6f 6f 0a 58 2e |p -r0 fo|o foo.X.|
|000037e0| 50 50 0a 49 6e 20 6e 65 | 61 72 6c 79 20 61 6c 6c |PP.In ne|arly all|
|000037f0| 20 63 61 73 65 73 2c 20 | 61 20 66 69 6c 65 20 74 | cases, |a file t|
|00003800| 68 61 74 20 69 73 20 61 | 6c 72 65 61 64 79 20 63 |hat is a|lready c|
|00003810| 6f 6d 70 72 65 73 73 65 | 64 20 63 61 6e 6e 6f 74 |ompresse|d cannot|
|00003820| 20 62 65 20 63 6f 6d 70 | 72 65 73 73 65 64 0a 66 | be comp|ressed.f|
|00003830| 75 72 74 68 65 72 20 62 | 79 0a 58 2e 49 20 5a 69 |urther b|y.X.I Zi|
|00003840| 70 2c 0a 6f 72 20 69 66 | 20 69 74 20 63 61 6e 2c |p,.or if| it can,|
|00003850| 20 74 68 65 20 65 66 66 | 65 63 74 20 69 73 20 6d | the eff|ect is m|
|00003860| 69 6e 69 6d 61 6c 2e 20 | 20 54 68 65 20 2d 6e 20 |inimal. | The -n |
|00003870| 6f 70 74 69 6f 6e 20 70 | 72 65 76 65 6e 74 73 0a |option p|revents.|
|00003880| 58 2e 49 20 5a 69 70 0a | 66 72 6f 6d 20 74 72 79 |X.I Zip.|from try|
|00003890| 69 6e 67 20 74 6f 20 63 | 6f 6d 70 72 65 73 73 20 |ing to c|ompress |
|000038a0| 66 69 6c 65 73 20 74 68 | 61 74 20 68 61 76 65 20 |files th|at have |
|000038b0| 74 68 65 20 73 75 66 66 | 69 78 65 73 3a 20 2e 5a |the suff|ixes: .Z|
|000038c0| 2c 20 2e 7a 69 70 2c 20 | 2e 7a 6f 6f 2c 0a 6f 72 |, .zip, |.zoo,.or|
|000038d0| 20 2e 61 72 63 2e 20 20 | 53 75 63 68 20 66 69 6c | .arc. |Such fil|
|000038e0| 65 73 20 61 72 65 20 73 | 69 6d 70 6c 79 20 73 74 |es are s|imply st|
|000038f0| 6f 72 65 64 20 28 30 25 | 20 63 6f 6d 70 72 65 73 |ored (0%| compres|
|00003900| 73 69 6f 6e 29 20 69 6e | 20 74 68 65 20 6f 75 74 |sion) in| the out|
|00003910| 70 75 74 20 7a 69 70 20 | 66 69 6c 65 2c 0a 73 6f |put zip |file,.so|
|00003920| 20 74 68 61 74 0a 58 2e | 49 20 5a 69 70 0a 64 6f | that.X.|I Zip.do|
|00003930| 65 73 6e 27 74 20 77 61 | 73 74 65 20 69 74 73 20 |esn't wa|ste its |
|00003940| 74 69 6d 65 20 74 72 79 | 69 6e 67 20 74 6f 20 63 |time try|ing to c|
|00003950| 6f 6d 70 72 65 73 73 20 | 74 68 65 6d 2e 0a 49 66 |ompress |them..If|
|00003960| 20 74 68 65 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 | the env|ironment|
|00003970| 20 76 61 72 69 61 62 6c | 65 20 4e 4f 5a 49 50 20 | variabl|e NOZIP |
|00003980| 69 73 20 73 65 74 2c 20 | 74 68 65 6e 20 74 68 65 |is set, |then the|
|00003990| 20 73 75 66 66 69 78 65 | 73 20 6c 69 73 74 65 64 | suffixe|s listed|
|000039a0| 0a 74 68 65 72 65 20 61 | 72 65 20 75 73 65 64 20 |.there a|re used |
|000039b0| 69 6e 73 74 65 61 64 20 | 6f 66 20 74 68 65 20 64 |instead |of the d|
|000039c0| 65 66 61 75 6c 74 20 6c | 69 73 74 2e 20 20 54 68 |efault l|ist. Th|
|000039d0| 65 20 73 75 66 66 69 78 | 65 73 20 61 72 65 20 73 |e suffix|es are s|
|000039e0| 65 70 61 72 61 74 65 64 | 20 62 79 0a 65 69 74 68 |eparated| by.eith|
|000039f0| 65 72 20 63 6f 6c 6f 6e | 73 20 6f 72 20 73 65 6d |er colon|s or sem|
|00003a00| 69 63 6f 6c 6f 6e 73 2e | 20 20 46 6f 72 20 65 78 |icolons.| For ex|
|00003a10| 61 6d 70 6c 65 2c 20 69 | 6e 20 55 6e 69 78 20 63 |ample, i|n Unix c|
|00003a20| 73 68 3a 0a 58 2e 50 50 | 0a 58 2e 74 69 2b 35 6e |sh:.X.PP|.X.ti+5n|
|00003a30| 0a 73 65 74 65 6e 76 20 | 4e 4f 5a 49 50 20 2e 5a |.setenv |NOZIP .Z|
|00003a40| 3a 2e 7a 69 70 3a 2e 74 | 69 66 66 3a 2e 67 69 66 |:.zip:.t|iff:.gif|
|00003a50| 3a 2e 73 6e 64 0a 58 2e | 74 69 2b 35 6e 0a 7a 69 |:.snd.X.|ti+5n.zi|
|00003a60| 70 20 2d 72 6e 20 66 6f | 6f 20 66 6f 6f 0a 58 2e |p -rn fo|o foo.X.|
|00003a70| 50 50 0a 77 69 6c 6c 20 | 70 75 74 20 65 76 65 72 |PP.will |put ever|
|00003a80| 79 74 68 69 6e 67 20 69 | 6e 20 66 6f 6f 20 69 6e |ything i|n foo in|
|00003a90| 74 6f 20 66 6f 6f 2e 7a | 69 70 2c 20 62 75 74 20 |to foo.z|ip, but |
|00003aa0| 77 69 6c 6c 20 73 74 6f | 72 65 20 61 6e 79 20 66 |will sto|re any f|
|00003ab0| 69 6c 65 73 20 74 68 61 | 74 20 65 6e 64 0a 69 6e |iles tha|t end.in|
|00003ac0| 20 2e 5a 2c 20 2e 7a 69 | 70 2c 20 2e 74 69 66 66 | .Z, .zi|p, .tiff|
|00003ad0| 2c 20 2e 67 69 66 2c 20 | 6f 72 20 2e 73 6e 64 20 |, .gif, |or .snd |
|00003ae0| 77 69 74 68 6f 75 74 20 | 74 72 79 69 6e 67 20 74 |without |trying t|
|00003af0| 6f 20 63 6f 6d 70 72 65 | 73 73 20 74 68 65 6d 2e |o compre|ss them.|
|00003b00| 20 20 28 49 6d 61 67 65 | 0a 61 6e 64 20 73 6f 75 | (Image|.and sou|
|00003b10| 6e 64 20 66 69 6c 65 73 | 20 6f 66 74 65 6e 20 68 |nd files| often h|
|00003b20| 61 76 65 20 74 68 65 69 | 72 20 6f 77 6e 20 73 70 |ave thei|r own sp|
|00003b30| 65 63 69 61 6c 69 7a 65 | 64 20 63 6f 6d 70 72 65 |ecialize|d compre|
|00003b40| 73 73 69 6f 6e 20 6d 65 | 74 68 6f 64 73 2e 29 20 |ssion me|thods.) |
|00003b50| 20 49 66 0a 74 68 65 20 | 65 6e 76 69 72 6f 6e 6d | If.the |environm|
|00003b60| 65 6e 74 20 76 61 72 69 | 61 62 6c 65 20 4e 4f 5a |ent vari|able NOZ|
|00003b70| 49 50 20 65 78 69 73 74 | 73 20 62 75 74 20 69 73 |IP exist|s but is|
|00003b80| 20 65 6d 70 74 79 20 6f | 72 20 63 6f 6e 74 61 69 | empty o|r contai|
|00003b90| 6e 73 20 6a 75 73 74 20 | 61 20 63 6f 6c 6f 6e 0a |ns just |a colon.|
|00003ba0| 6f 72 20 73 65 6d 69 63 | 6f 6c 6f 6e 2c 20 74 68 |or semic|olon, th|
|00003bb0| 65 6e 20 7a 69 70 20 2d | 6e 20 77 69 6c 6c 20 73 |en zip -|n will s|
|00003bc0| 74 6f 72 65 20 61 6c 6c | 20 74 68 65 20 65 6e 74 |tore all| the ent|
|00003bd0| 72 69 65 73 20 61 6e 64 | 20 64 6f 20 6e 6f 20 63 |ries and| do no c|
|00003be0| 6f 6d 70 72 65 73 73 69 | 6f 6e 2e 0a 58 2e 50 50 |ompressi|on..X.PP|
|00003bf0| 0a 55 6e 64 65 72 20 55 | 6e 69 78 20 61 6e 64 20 |.Under U|nix and |
|00003c00| 75 6e 64 65 72 20 4f 53 | 2f 32 20 28 69 66 20 66 |under OS|/2 (if f|
|00003c10| 69 6c 65 73 20 66 72 6f | 6d 20 61 20 48 50 46 53 |iles fro|m a HPFS|
|00003c20| 20 61 72 65 20 73 74 6f | 72 65 64 29 2c 0a 58 2e | are sto|red),.X.|
|00003c30| 49 20 5a 69 70 0a 77 69 | 6c 6c 20 73 74 6f 72 65 |I Zip.wi|ll store|
|00003c40| 20 74 68 65 20 66 75 6c | 6c 20 70 61 74 68 20 28 | the ful|l path (|
|00003c50| 72 65 6c 61 74 69 76 65 | 20 74 6f 20 74 68 65 20 |relative| to the |
|00003c60| 63 75 72 72 65 6e 74 20 | 70 61 74 68 29 20 61 6e |current |path) an|
|00003c70| 64 20 6e 61 6d 65 20 6f | 66 20 74 68 65 0a 66 69 |d name o|f the.fi|
|00003c80| 6c 65 20 28 6f 72 20 6a | 75 73 74 20 74 68 65 20 |le (or j|ust the |
|00003c90| 6e 61 6d 65 20 69 66 20 | 2d 6a 20 69 73 20 73 70 |name if |-j is sp|
|00003ca0| 65 63 69 66 69 65 64 29 | 20 69 6e 20 74 68 65 20 |ecified)| in the |
|00003cb0| 7a 69 70 20 66 69 6c 65 | 20 61 6c 6f 6e 67 20 77 |zip file| along w|
|00003cc0| 69 74 68 20 74 68 65 0a | 55 6e 69 78 20 61 74 74 |ith the.|Unix att|
|00003cd0| 72 69 62 75 74 65 73 2c | 20 61 6e 64 20 69 74 20 |ributes,| and it |
|00003ce0| 77 69 6c 6c 20 6d 61 72 | 6b 0a 74 68 65 20 65 6e |will mar|k.the en|
|00003cf0| 74 72 79 20 61 73 20 6d | 61 64 65 20 75 6e 64 65 |try as m|ade unde|
|00003d00| 72 20 55 6e 69 78 2e 20 | 20 49 66 20 74 68 65 20 |r Unix. | If the |
|00003d10| 7a 69 70 20 66 69 6c 65 | 20 69 73 20 69 6e 74 65 |zip file| is inte|
|00003d20| 6e 64 65 64 20 66 6f 72 | 20 50 4b 55 4e 5a 49 50 |nded for| PKUNZIP|
|00003d30| 20 75 6e 64 65 72 0a 4d | 53 44 4f 53 2c 20 74 68 | under.M|SDOS, th|
|00003d40| 65 6e 20 74 68 65 20 2d | 6b 20 28 4b 61 74 7a 29 |en the -|k (Katz)|
|00003d50| 20 6f 70 74 69 6f 6e 20 | 73 68 6f 75 6c 64 20 62 | option |should b|
|00003d60| 65 20 75 73 65 64 20 74 | 6f 20 61 74 74 65 6d 70 |e used t|o attemp|
|00003d70| 74 20 74 6f 20 63 6f 6e | 76 65 72 74 20 74 68 65 |t to con|vert the|
|00003d80| 0a 6e 61 6d 65 73 20 61 | 6e 64 20 70 61 74 68 73 |.names a|nd paths|
|00003d90| 20 74 6f 20 63 6f 6e 66 | 6f 72 6d 20 74 6f 20 4d | to conf|orm to M|
|00003da0| 53 44 4f 53 2c 20 73 74 | 6f 72 65 20 6f 6e 6c 79 |SDOS, st|ore only|
|00003db0| 20 74 68 65 20 4d 53 44 | 4f 53 20 61 74 74 72 69 | the MSD|OS attri|
|00003dc0| 62 75 74 65 20 28 6a 75 | 73 74 0a 74 68 65 20 75 |bute (ju|st.the u|
|00003dd0| 73 65 72 20 77 72 69 74 | 65 20 61 74 74 72 69 62 |ser writ|e attrib|
|00003de0| 75 74 65 20 66 72 6f 6d | 20 55 6e 69 78 29 2c 20 |ute from| Unix), |
|00003df0| 61 6e 64 20 6d 61 72 6b | 20 74 68 65 20 65 6e 74 |and mark| the ent|
|00003e00| 72 79 20 61 73 20 6d 61 | 64 65 20 75 6e 64 65 72 |ry as ma|de under|
|00003e10| 20 4d 53 44 4f 53 0a 58 | 28 65 76 65 6e 20 74 68 | MSDOS.X|(even th|
|00003e20| 6f 75 67 68 20 69 74 20 | 77 61 73 6e 27 74 29 2e |ough it |wasn't).|
|00003e30| 0a 58 2e 50 50 0a 54 68 | 65 20 2d 6f 20 28 6f 6c |.X.PP.Th|e -o (ol|
|00003e40| 64 65 72 29 20 6f 70 74 | 69 6f 6e 20 77 69 6c 6c |der) opt|ion will|
|00003e50| 20 73 65 74 20 74 68 65 | 20 22 6c 61 73 74 20 6d | set the| "last m|
|00003e60| 6f 64 69 66 69 65 64 22 | 20 74 69 6d 65 20 6f 66 |odified"| time of|
|00003e70| 20 74 68 65 20 7a 69 70 | 20 66 69 6c 65 20 74 6f | the zip| file to|
|00003e80| 0a 74 68 65 20 6c 61 74 | 65 73 74 20 22 6c 61 73 |.the lat|est "las|
|00003e90| 74 20 6d 6f 64 69 66 69 | 65 64 22 20 74 69 6d 65 |t modifi|ed" time|
|00003ea0| 20 6f 66 20 74 68 65 20 | 65 6e 74 72 69 65 73 20 | of the |entries |
|00003eb0| 69 6e 20 74 68 65 20 7a | 69 70 20 66 69 6c 65 2e |in the z|ip file.|
|00003ec0| 20 20 54 68 69 73 20 63 | 61 6e 0a 62 65 20 75 73 | This c|an.be us|
|00003ed0| 65 64 20 77 69 74 68 6f | 75 74 20 61 6e 79 20 6f |ed witho|ut any o|
|00003ee0| 74 68 65 72 20 6f 70 65 | 72 61 74 69 6f 6e 73 2c |ther ope|rations,|
|00003ef0| 20 69 66 20 64 65 73 69 | 72 65 64 2e 20 20 46 6f | if desi|red. Fo|
|00003f00| 72 20 65 78 61 6d 70 6c | 65 3a 0a 58 2e 50 50 0a |r exampl|e:.X.PP.|
|00003f10| 58 2e 74 69 2b 35 6e 0a | 7a 69 70 20 2d 6f 20 66 |X.ti+5n.|zip -o f|
|00003f20| 6f 6f 0a 58 2e 50 50 0a | 77 69 6c 6c 20 63 68 61 |oo.X.PP.|will cha|
|00003f30| 6e 67 65 20 74 68 65 20 | 6c 61 73 74 20 6d 6f 64 |nge the |last mod|
|00003f40| 69 66 69 65 64 20 74 69 | 6d 65 20 6f 66 20 66 6f |ified ti|me of fo|
|00003f50| 6f 2e 7a 69 70 20 74 6f | 20 74 68 65 20 6c 61 74 |o.zip to| the lat|
|00003f60| 65 73 74 20 74 69 6d 65 | 20 6f 66 20 74 68 65 0a |est time| of the.|
|00003f70| 65 6e 74 72 69 65 73 20 | 69 6e 20 66 6f 6f 2e 7a |entries |in foo.z|
|00003f80| 69 70 2e 0a 58 2e 50 50 | 0a 54 68 65 20 2d 65 20 |ip..X.PP|.The -e |
|00003f90| 61 6e 64 20 2d 63 20 6f | 70 74 69 6f 6e 73 20 6f |and -c o|ptions o|
|00003fa0| 70 65 72 61 74 65 20 6f | 6e 20 61 6c 6c 20 66 69 |perate o|n all fi|
|00003fb0| 6c 65 73 20 75 70 64 61 | 74 65 64 20 6f 72 20 61 |les upda|ted or a|
|00003fc0| 64 64 65 64 20 74 6f 20 | 74 68 65 20 7a 69 70 20 |dded to |the zip |
|00003fd0| 66 69 6c 65 2e 0a 58 45 | 6e 63 72 79 70 74 69 6f |file..XE|ncryptio|
|00003fe0| 6e 20 28 2d 65 29 20 77 | 69 6c 6c 20 70 72 6f 6d |n (-e) w|ill prom|
|00003ff0| 70 74 20 66 6f 72 20 61 | 20 70 61 73 73 77 6f 72 |pt for a| passwor|
|00004000| 64 20 6f 6e 20 74 68 65 | 20 74 65 72 6d 69 6e 61 |d on the| termina|
|00004010| 6c 20 61 6e 64 20 77 69 | 6c 6c 0a 6e 6f 74 20 65 |l and wi|ll.not e|
|00004020| 63 68 6f 20 74 68 65 20 | 70 61 73 73 77 6f 72 64 |cho the |password|
|00004030| 20 61 73 20 69 74 20 69 | 73 20 74 79 70 65 64 20 | as it i|s typed |
|00004040| 28 69 66 20 73 74 64 65 | 72 72 20 69 73 20 6e 6f |(if stde|rr is no|
|00004050| 74 20 61 20 54 54 59 2c | 20 5a 69 70 20 77 69 6c |t a TTY,| Zip wil|
|00004060| 6c 20 65 78 69 74 0a 77 | 69 74 68 20 61 6e 20 65 |l exit.w|ith an e|
|00004070| 72 72 6f 72 29 2e 20 20 | 4e 65 77 20 7a 69 70 20 |rror). |New zip |
|00004080| 65 6e 74 72 69 65 73 20 | 77 69 6c 6c 20 62 65 20 |entries |will be |
|00004090| 65 6e 63 72 79 70 74 65 | 64 20 75 73 69 6e 67 20 |encrypte|d using |
|000040a0| 74 68 61 74 20 70 61 73 | 73 77 6f 72 64 2e 20 20 |that pas|sword. |
|000040b0| 46 6f 72 0a 61 64 64 65 | 64 20 70 65 61 63 65 20 |For.adde|d peace |
|000040c0| 6f 66 20 6d 69 6e 64 2c | 20 79 6f 75 20 63 61 6e |of mind,| you can|
|000040d0| 20 75 73 65 20 2d 65 65 | 2c 20 77 68 69 63 68 20 | use -ee|, which |
|000040e0| 77 69 6c 6c 20 70 72 6f | 6d 70 74 20 66 6f 72 20 |will pro|mpt for |
|000040f0| 74 68 65 20 70 61 73 73 | 77 6f 72 64 0a 74 77 69 |the pass|word.twi|
|00004100| 63 65 2c 20 63 68 65 63 | 6b 69 6e 67 20 74 68 61 |ce, chec|king tha|
|00004110| 74 20 74 68 65 20 74 77 | 6f 20 61 72 65 20 74 68 |t the tw|o are th|
|00004120| 65 20 73 61 6d 65 20 62 | 65 66 6f 72 65 20 75 73 |e same b|efore us|
|00004130| 69 6e 67 20 69 74 2e 0a | 58 2e 50 50 0a 4f 6e 65 |ing it..|X.PP.One|
|00004140| 2d 6c 69 6e 65 20 63 6f | 6d 6d 65 6e 74 73 20 63 |-line co|mments c|
|00004150| 61 6e 20 62 65 20 61 64 | 64 65 64 20 66 6f 72 20 |an be ad|ded for |
|00004160| 65 61 63 68 20 66 69 6c | 65 20 77 69 74 68 20 74 |each fil|e with t|
|00004170| 68 65 20 2d 63 20 6f 70 | 74 69 6f 6e 2e 20 20 54 |he -c op|tion. T|
|00004180| 68 65 20 7a 69 70 0a 66 | 69 6c 65 20 6f 70 65 72 |he zip.f|ile oper|
|00004190| 61 74 69 6f 6e 73 20 28 | 61 64 64 69 6e 67 20 6f |ations (|adding o|
|000041a0| 72 20 75 70 64 61 74 69 | 6e 67 29 20 77 69 6c 6c |r updati|ng) will|
|000041b0| 20 62 65 20 64 6f 6e 65 | 20 66 69 72 73 74 2c 20 | be done| first, |
|000041c0| 61 6e 64 20 79 6f 75 20 | 77 69 6c 6c 20 74 68 65 |and you |will the|
|000041d0| 6e 20 62 65 0a 70 72 6f | 6d 70 74 65 64 20 66 6f |n be.pro|mpted fo|
|000041e0| 72 20 61 20 6f 6e 65 2d | 6c 69 6e 65 20 63 6f 6d |r a one-|line com|
|000041f0| 6d 65 6e 74 20 66 6f 72 | 20 65 61 63 68 20 66 69 |ment for| each fi|
|00004200| 6c 65 2e 20 20 59 6f 75 | 20 63 61 6e 20 74 68 65 |le. You| can the|
|00004210| 6e 20 65 6e 74 65 72 20 | 74 68 65 20 63 6f 6d 6d |n enter |the comm|
|00004220| 65 6e 74 0a 66 6f 6c 6c | 6f 77 65 64 20 62 79 20 |ent.foll|owed by |
|00004230| 72 65 74 75 72 6e 2c 20 | 6f 72 20 6a 75 73 74 20 |return, |or just |
|00004240| 72 65 74 75 72 6e 20 66 | 6f 72 20 6e 6f 20 63 6f |return f|or no co|
|00004250| 6d 6d 65 6e 74 2e 0a 58 | 2e 50 50 0a 54 68 65 20 |mment..X|.PP.The |
|00004260| 2d 7a 20 6f 70 74 69 6f | 6e 20 77 69 6c 6c 20 70 |-z optio|n will p|
|00004270| 72 6f 6d 70 74 20 79 6f | 75 20 66 6f 72 20 61 20 |rompt yo|u for a |
|00004280| 6d 75 6c 74 69 2d 6c 69 | 6e 65 20 63 6f 6d 6d 65 |multi-li|ne comme|
|00004290| 6e 74 20 66 6f 72 20 74 | 68 65 20 65 6e 74 69 72 |nt for t|he entir|
|000042a0| 65 20 7a 69 70 0a 66 69 | 6c 65 2e 20 20 54 68 69 |e zip.fi|le. Thi|
|000042b0| 73 20 6f 70 74 69 6f 6e | 20 63 61 6e 20 62 65 20 |s option| can be |
|000042c0| 75 73 65 64 20 62 79 20 | 69 74 73 65 6c 66 2c 20 |used by |itself, |
|000042d0| 6f 72 20 69 6e 20 63 6f | 6d 62 69 6e 61 74 69 6f |or in co|mbinatio|
|000042e0| 6e 20 77 69 74 68 20 6f | 74 68 65 72 0a 6f 70 74 |n with o|ther.opt|
|000042f0| 69 6f 6e 73 2e 20 20 54 | 68 65 20 63 6f 6d 6d 65 |ions. T|he comme|
|00004300| 6e 74 20 69 73 20 65 6e | 64 65 64 20 62 79 20 61 |nt is en|ded by a|
|00004310| 20 6c 69 6e 65 20 63 6f | 6e 74 61 69 6e 69 6e 67 | line co|ntaining|
|00004320| 20 6a 75 73 74 20 61 20 | 70 65 72 69 6f 64 2c 20 | just a |period, |
|00004330| 6f 72 20 61 6e 20 65 6e | 64 0a 6f 66 20 66 69 6c |or an en|d.of fil|
|00004340| 65 20 63 6f 6e 64 69 74 | 69 6f 6e 20 28 5e 44 20 |e condit|ion (^D |
|00004350| 6f 6e 20 55 6e 69 78 2c | 20 5e 5a 20 6f 6e 20 4d |on Unix,| ^Z on M|
|00004360| 53 44 4f 53 2c 20 4f 53 | 2f 32 2c 20 61 6e 64 20 |SDOS, OS|/2, and |
|00004370| 56 41 58 2f 56 4d 53 29 | 2e 0a 53 69 6e 63 65 20 |VAX/VMS)|..Since |
|00004380| 2d 7a 20 72 65 61 64 73 | 20 74 68 65 0a 6c 69 6e |-z reads| the.lin|
|00004390| 65 73 20 66 72 6f 6d 20 | 73 74 64 69 6e 2c 20 79 |es from |stdin, y|
|000043a0| 6f 75 20 63 61 6e 20 73 | 69 6d 70 6c 79 20 74 61 |ou can s|imply ta|
|000043b0| 6b 65 20 74 68 65 20 63 | 6f 6d 6d 65 6e 74 20 66 |ke the c|omment f|
|000043c0| 72 6f 6d 20 61 20 66 69 | 6c 65 3a 0a 58 2e 50 50 |rom a fi|le:.X.PP|
|000043d0| 0a 58 2e 74 69 2b 35 6e | 0a 7a 69 70 20 2d 7a 20 |.X.ti+5n|.zip -z |
|000043e0| 66 6f 6f 20 3c 20 66 6f | 6f 77 68 61 74 0a 58 2e |foo < fo|owhat.X.|
|000043f0| 50 50 0a 54 68 65 20 2d | 71 20 28 71 75 69 65 74 |PP.The -|q (quiet|
|00004400| 29 20 6f 70 74 69 6f 6e | 20 65 6c 69 6d 69 6e 61 |) option| elimina|
|00004410| 74 65 73 20 74 68 65 20 | 69 6e 66 6f 72 6d 61 74 |tes the |informat|
|00004420| 69 6f 6e 61 6c 20 6d 65 | 73 73 61 67 65 73 20 61 |ional me|ssages a|
|00004430| 6e 64 20 63 6f 6d 6d 65 | 6e 74 20 70 72 6f 6d 70 |nd comme|nt promp|
|00004440| 74 73 0a 77 68 69 6c 65 | 0a 58 2e 49 20 5a 69 70 |ts.while|.X.I Zip|
|00004450| 0a 69 73 20 6f 70 65 72 | 61 74 69 6e 67 2e 20 20 |.is oper|ating. |
|00004460| 54 68 69 73 20 6d 69 67 | 68 74 20 62 65 20 75 73 |This mig|ht be us|
|00004470| 65 64 20 69 6e 20 73 68 | 65 6c 6c 20 73 63 72 69 |ed in sh|ell scri|
|00004480| 70 74 73 2c 20 66 6f 72 | 20 65 78 61 6d 70 6c 65 |pts, for| example|
|00004490| 2c 20 6f 72 20 69 66 20 | 74 68 65 0a 7a 69 70 20 |, or if |the.zip |
|000044a0| 6f 70 65 72 61 74 69 6f | 6e 20 69 73 20 62 65 69 |operatio|n is bei|
|000044b0| 6e 67 20 70 65 72 66 6f | 72 6d 65 64 20 61 73 20 |ng perfo|rmed as |
|000044c0| 61 20 62 61 63 6b 67 72 | 6f 75 6e 64 20 74 61 73 |a backgr|ound tas|
|000044d0| 6b 20 28 22 7a 69 70 20 | 2d 71 20 66 6f 6f 20 2a |k ("zip |-q foo *|
|000044e0| 2e 63 20 26 22 29 2e 0a | 58 2e 50 50 0a 58 2e 49 |.c &")..|X.PP.X.I|
|000044f0| 20 5a 69 70 0a 63 61 6e | 20 74 61 6b 65 20 61 20 | Zip.can| take a |
|00004500| 6c 69 73 74 20 6f 66 20 | 66 69 6c 65 20 6e 61 6d |list of |file nam|
|00004510| 65 73 20 74 6f 20 6f 70 | 65 72 61 74 65 20 6f 6e |es to op|erate on|
|00004520| 20 66 72 6f 6d 20 73 74 | 64 69 6e 20 75 73 69 6e | from st|din usin|
|00004530| 67 20 74 68 65 20 2d 20 | 6f 70 74 69 6f 6e 2e 0a |g the - |option..|
|00004540| 49 6e 20 55 6e 69 78 2c | 20 74 68 69 73 20 6f 70 |In Unix,| this op|
|00004550| 74 69 6f 6e 20 63 61 6e | 20 62 65 20 75 73 65 64 |tion can| be used|
|00004560| 20 77 69 74 68 20 74 68 | 65 20 66 69 6e 64 20 63 | with th|e find c|
|00004570| 6f 6d 6d 61 6e 64 20 74 | 6f 20 65 78 74 65 6e 64 |ommand t|o extend|
|00004580| 20 67 72 65 61 74 6c 79 | 0a 74 68 65 20 66 75 6e | greatly|.the fun|
|00004590| 63 74 69 6f 6e 61 6c 69 | 74 79 20 6f 66 0a 58 2e |ctionali|ty of.X.|
|000045a0| 49 20 5a 69 70 2e 0a 58 | 46 6f 72 20 65 78 61 6d |I Zip..X|For exam|
|000045b0| 70 6c 65 2c 20 74 6f 20 | 7a 69 70 20 75 70 20 61 |ple, to |zip up a|
|000045c0| 6c 6c 20 74 68 65 20 43 | 20 73 6f 75 72 63 65 20 |ll the C| source |
|000045d0| 66 69 6c 65 73 20 69 6e | 20 74 68 65 20 63 75 72 |files in| the cur|
|000045e0| 72 65 6e 74 20 64 69 72 | 65 63 74 6f 72 79 20 61 |rent dir|ectory a|
|000045f0| 6e 64 0a 69 74 73 20 73 | 75 62 64 69 72 65 63 74 |nd.its s|ubdirect|
|00004600| 6f 72 69 65 73 2c 20 79 | 6f 75 20 63 61 6e 3a 0a |ories, y|ou can:.|
|00004610| 58 2e 50 50 0a 58 2e 74 | 69 2b 35 6e 0a 66 69 6e |X.PP.X.t|i+5n.fin|
|00004620| 64 20 2e 20 2d 74 79 70 | 65 20 66 20 2d 6e 61 6d |d . -typ|e f -nam|
|00004630| 65 20 22 2a 2e 5b 63 68 | 5d 22 20 2d 70 72 69 6e |e "*.[ch|]" -prin|
|00004640| 74 20 7c 20 7a 69 70 20 | 73 6f 75 72 63 65 20 2d |t | zip |source -|
|00004650| 0a 58 2e 50 50 0a 4e 6f | 74 65 20 74 68 61 74 20 |.X.PP.No|te that |
|00004660| 74 68 65 20 70 61 74 74 | 65 72 6e 20 6d 75 73 74 |the patt|ern must|
|00004670| 20 62 65 20 71 75 6f 74 | 65 64 20 74 6f 20 6b 65 | be quot|ed to ke|
|00004680| 65 70 20 74 68 65 20 73 | 68 65 6c 6c 20 66 72 6f |ep the s|hell fro|
|00004690| 6d 20 65 78 70 61 6e 64 | 69 6e 67 20 69 74 2e 0a |m expand|ing it..|
|000046a0| 58 2e 50 50 0a 55 6e 64 | 65 72 20 56 4d 53 20 6f |X.PP.Und|er VMS o|
|000046b0| 6e 6c 79 2c 20 74 68 65 | 20 2d 77 20 6f 70 74 69 |nly, the| -w opti|
|000046c0| 6f 6e 20 77 69 6c 6c 20 | 61 70 70 65 6e 64 20 74 |on will |append t|
|000046d0| 68 65 20 76 65 72 73 69 | 6f 6e 20 6e 75 6d 62 65 |he versi|on numbe|
|000046e0| 72 20 6f 66 20 74 68 65 | 20 66 69 6c 65 73 20 74 |r of the| files t|
|000046f0| 6f 0a 74 68 65 20 6e 61 | 6d 65 20 61 6e 64 20 7a |o.the na|me and z|
|00004700| 69 70 20 75 70 20 6d 75 | 6c 74 69 70 6c 65 20 76 |ip up mu|ltiple v|
|00004710| 65 72 73 69 6f 6e 73 20 | 6f 66 20 66 69 6c 65 73 |ersions |of files|
|00004720| 2e 20 20 57 69 74 68 6f | 75 74 20 2d 77 2c 0a 58 |. Witho|ut -w,.X|
|00004730| 2e 49 20 5a 69 70 0a 77 | 69 6c 6c 20 6f 6e 6c 79 |.I Zip.w|ill only|
|00004740| 20 75 73 65 20 74 68 65 | 20 6d 6f 73 74 20 72 65 | use the| most re|
|00004750| 63 65 6e 74 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 |cent ver|sion of |
|00004760| 74 68 65 20 73 70 65 63 | 69 66 69 65 64 20 66 69 |the spec|ified fi|
|00004770| 6c 65 28 73 29 2e 0a 58 | 2e 50 50 0a 49 66 0a 58 |le(s)..X|.PP.If.X|
|00004780| 2e 49 20 5a 69 70 0a 69 | 73 20 72 75 6e 20 77 69 |.I Zip.i|s run wi|
|00004790| 74 68 20 6e 6f 20 61 72 | 67 75 6d 65 6e 74 73 20 |th no ar|guments |
|000047a0| 6f 72 20 77 69 74 68 20 | 74 68 65 20 2d 68 20 6f |or with |the -h o|
|000047b0| 70 74 69 6f 6e 2c 20 74 | 68 65 20 6c 69 63 65 6e |ption, t|he licen|
|000047c0| 73 65 20 61 6e 64 20 74 | 68 65 0a 63 6f 6d 6d 61 |se and t|he.comma|
|000047d0| 6e 64 2d 61 72 67 75 6d | 65 6e 74 20 61 6e 64 20 |nd-argum|ent and |
|000047e0| 6f 70 74 69 6f 6e 20 68 | 65 6c 70 20 69 73 20 73 |option h|elp is s|
|000047f0| 68 6f 77 6e 2e 20 20 54 | 68 65 20 2d 6c 20 6f 70 |hown. T|he -l op|
|00004800| 74 69 6f 6e 20 6a 75 73 | 74 20 73 68 6f 77 73 20 |tion jus|t shows |
|00004810| 74 68 65 0a 6c 69 63 65 | 6e 73 65 2e 0a 58 2e 53 |the.lice|nse..X.S|
|00004820| 48 20 22 41 42 4f 55 54 | 20 50 41 54 54 45 52 4e |H "ABOUT| PATTERN|
|00004830| 20 4d 41 54 43 48 49 4e | 47 22 0a 58 28 4e 6f 74 | MATCHIN|G".X(Not|
|00004840| 65 3a 20 74 68 69 73 20 | 73 65 63 74 69 6f 6e 20 |e: this |section |
|00004850| 61 70 70 6c 69 65 73 20 | 74 6f 20 55 6e 69 78 2e |applies |to Unix.|
|00004860| 20 20 57 61 74 63 68 20 | 74 68 69 73 20 73 70 61 | Watch |this spa|
|00004870| 63 65 20 66 6f 72 20 64 | 65 74 61 69 6c 73 20 6f |ce for d|etails o|
|00004880| 6e 20 4d 53 44 4f 53 0a | 61 6e 64 20 56 4d 53 20 |n MSDOS.|and VMS |
|00004890| 6f 70 65 72 61 74 69 6f | 6e 2e 29 0a 58 2e 50 50 |operatio|n.).X.PP|
|000048a0| 0a 54 68 65 20 55 6e 69 | 78 20 73 68 65 6c 6c 20 |.The Uni|x shell |
|000048b0| 28 73 68 20 6f 72 20 63 | 73 68 29 20 64 6f 65 73 |(sh or c|sh) does|
|000048c0| 20 66 69 6c 65 6e 61 6d | 65 20 73 75 62 73 74 69 | filenam|e substi|
|000048d0| 74 75 74 69 6f 6e 20 6f | 6e 20 63 6f 6d 6d 61 6e |tution o|n comman|
|000048e0| 64 20 61 72 67 75 6d 65 | 6e 74 73 2e 0a 54 68 65 |d argume|nts..The|
|000048f0| 20 73 70 65 63 69 61 6c | 20 63 68 61 72 61 63 74 | special| charact|
|00004900| 65 72 73 20 61 72 65 20 | 3f 2c 20 77 68 69 63 68 |ers are |?, which|
|00004910| 20 6d 61 74 63 68 65 73 | 20 61 6e 79 20 73 69 6e | matches| any sin|
|00004920| 67 6c 65 20 63 68 61 72 | 61 63 74 65 72 3b 20 2a |gle char|acter; *|
|00004930| 20 77 68 69 63 68 0a 6d | 61 74 63 68 65 73 20 61 | which.m|atches a|
|00004940| 6e 79 20 6e 75 6d 62 65 | 72 20 6f 66 20 63 68 61 |ny numbe|r of cha|
|00004950| 72 61 63 74 65 72 73 20 | 28 69 6e 63 6c 75 64 69 |racters |(includi|
|00004960| 6e 67 20 6e 6f 6e 65 29 | 3b 20 61 6e 64 20 5b 5d |ng none)|; and []|
|00004970| 20 77 68 69 63 68 20 6d | 61 74 63 68 65 73 20 61 | which m|atches a|
|00004980| 6e 79 0a 63 68 61 72 61 | 63 74 65 72 20 69 6e 20 |ny.chara|cter in |
|00004990| 74 68 65 20 72 61 6e 67 | 65 20 69 6e 73 69 64 65 |the rang|e inside|
|000049a0| 20 74 68 65 20 62 72 61 | 63 6b 65 74 73 20 28 6c | the bra|ckets (l|
|000049b0| 69 6b 65 20 5b 61 5c 2d | 66 5d 20 6f 72 20 5b 30 |ike [a\-|f] or [0|
|000049c0| 5c 2d 39 5d 29 2e 20 20 | 57 68 65 6e 0a 74 68 65 |\-9]). |When.the|
|000049d0| 73 65 20 63 68 61 72 61 | 63 74 65 72 73 20 61 72 |se chara|cters ar|
|000049e0| 65 20 65 6e 63 6f 75 6e | 74 65 72 65 64 20 28 61 |e encoun|tered (a|
|000049f0| 6e 64 20 6e 6f 74 20 65 | 73 63 61 70 65 64 20 77 |nd not e|scaped w|
|00004a00| 69 74 68 20 61 20 62 61 | 63 6b 73 6c 61 73 68 20 |ith a ba|ckslash |
|00004a10| 6f 72 0a 71 75 6f 74 65 | 73 29 2c 20 74 68 65 0a |or.quote|s), the.|
|00004a20| 73 68 65 6c 6c 20 77 69 | 6c 6c 20 6c 6f 6f 6b 20 |shell wi|ll look |
|00004a30| 66 6f 72 20 66 69 6c 65 | 73 20 72 65 6c 61 74 69 |for file|s relati|
|00004a40| 76 65 20 74 6f 20 74 68 | 65 20 63 75 72 72 65 6e |ve to th|e curren|
|00004a50| 74 20 70 61 74 68 20 74 | 68 61 74 20 6d 61 74 63 |t path t|hat matc|
|00004a60| 68 20 74 68 65 0a 70 61 | 74 74 65 72 6e 2c 20 61 |h the.pa|ttern, a|
|00004a70| 6e 64 20 72 65 70 6c 61 | 63 65 20 74 68 65 20 61 |nd repla|ce the a|
|00004a80| 72 67 75 6d 65 6e 74 20 | 77 69 74 68 20 61 20 6c |rgument |with a l|
|00004a90| 69 73 74 20 6f 66 20 74 | 68 65 20 6e 61 6d 65 73 |ist of t|he names|
|00004aa0| 20 74 68 61 74 20 6d 61 | 74 63 68 65 64 2e 0a 58 | that ma|tched..X|
|00004ab0| 2e 50 50 0a 58 2e 49 20 | 5a 69 70 0a 63 61 6e 20 |.PP.X.I |Zip.can |
|00004ac0| 64 6f 20 74 68 65 20 73 | 61 6d 65 20 6d 61 74 63 |do the s|ame matc|
|00004ad0| 68 69 6e 67 20 6f 6e 20 | 6e 61 6d 65 73 20 74 68 |hing on |names th|
|00004ae0| 61 74 20 61 72 65 20 69 | 6e 20 74 68 65 20 7a 69 |at are i|n the zi|
|00004af0| 70 20 66 69 6c 65 20 62 | 65 69 6e 67 0a 6d 6f 64 |p file b|eing.mod|
|00004b00| 69 66 69 65 64 20 6f 72 | 2c 20 69 6e 20 74 68 65 |ified or|, in the|
|00004b10| 20 63 61 73 65 20 6f 66 | 20 74 68 65 20 2d 78 20 | case of| the -x |
|00004b20| 28 65 78 63 6c 75 64 65 | 29 20 6f 70 74 69 6f 6e |(exclude|) option|
|00004b30| 2c 20 6f 6e 20 74 68 65 | 20 6c 69 73 74 20 6f 66 |, on the| list of|
|00004b40| 0a 66 69 6c 65 73 20 74 | 6f 20 62 65 20 6f 70 65 |.files t|o be ope|
|00004b50| 72 61 74 65 64 20 6f 6e | 2c 20 62 79 20 75 73 69 |rated on|, by usi|
|00004b60| 6e 67 20 62 61 63 6b 73 | 6c 61 73 68 65 73 20 6f |ng backs|lashes o|
|00004b70| 72 20 71 75 6f 74 65 73 | 0a 74 6f 20 74 65 6c 6c |r quotes|.to tell|
|00004b80| 20 74 68 65 20 73 68 65 | 6c 6c 20 6e 6f 74 20 74 | the she|ll not t|
|00004b90| 6f 20 64 6f 20 74 68 65 | 20 6e 61 6d 65 20 65 78 |o do the| name ex|
|00004ba0| 70 61 6e 73 69 6f 6e 2e | 20 20 49 6e 20 67 65 6e |pansion.| In gen|
|00004bb0| 65 72 61 6c 2c 20 77 68 | 65 6e 0a 58 2e 49 20 5a |eral, wh|en.X.I Z|
|00004bc0| 69 70 0a 65 6e 63 6f 75 | 6e 74 65 72 73 20 61 20 |ip.encou|nters a |
|00004bd0| 6e 61 6d 65 20 69 6e 20 | 74 68 65 20 6c 69 73 74 |name in |the list|
|00004be0| 0a 6f 66 20 66 69 6c 65 | 73 20 74 6f 20 64 6f 2c |.of file|s to do,|
|00004bf0| 20 69 74 20 66 69 72 73 | 74 20 6c 6f 6f 6b 73 20 | it firs|t looks |
|00004c00| 66 6f 72 20 74 68 65 20 | 6e 61 6d 65 20 69 6e 20 |for the |name in |
|00004c10| 74 68 65 20 66 69 6c 65 | 20 73 79 73 74 65 6d 2e |the file| system.|
|00004c20| 20 20 49 66 20 69 74 0a | 66 69 6e 64 73 20 69 74 | If it.|finds it|
|00004c30| 2c 20 69 74 20 74 68 65 | 6e 20 61 64 64 73 20 69 |, it the|n adds i|
|00004c40| 74 20 74 6f 20 74 68 65 | 20 6c 69 73 74 20 6f 66 |t to the| list of|
|00004c50| 20 66 69 6c 65 73 20 74 | 6f 20 64 6f 2e 20 20 49 | files t|o do. I|
|00004c60| 66 20 69 74 20 64 6f 65 | 73 20 6e 6f 74 0a 66 69 |f it doe|s not.fi|
|00004c70| 6e 64 20 69 74 2c 20 69 | 74 20 77 69 6c 6c 20 6c |nd it, i|t will l|
|00004c80| 6f 6f 6b 20 66 6f 72 20 | 74 68 65 20 6e 61 6d 65 |ook for |the name|
|00004c90| 20 69 6e 20 74 68 65 20 | 7a 69 70 20 66 69 6c 65 | in the |zip file|
|00004ca0| 20 62 65 69 6e 67 20 6d | 6f 64 69 66 69 65 64 20 | being m|odified |
|00004cb0| 28 69 66 20 69 74 0a 65 | 78 69 73 74 73 29 2c 20 |(if it.e|xists), |
|00004cc0| 75 73 69 6e 67 20 74 68 | 65 20 70 61 74 74 65 72 |using th|e patter|
|00004cd0| 6e 20 6d 61 74 63 68 69 | 6e 67 20 63 68 61 72 61 |n matchi|ng chara|
|00004ce0| 63 74 65 72 73 20 61 62 | 6f 76 65 2c 20 69 66 20 |cters ab|ove, if |
|00004cf0| 61 6e 79 2e 20 20 46 6f | 72 20 65 61 63 68 0a 6d |any. Fo|r each.m|
|00004d00| 61 74 63 68 2c 20 69 74 | 20 77 69 6c 6c 20 61 64 |atch, it| will ad|
|00004d10| 64 20 74 68 61 74 20 6e | 61 6d 65 20 74 6f 20 74 |d that n|ame to t|
|00004d20| 68 65 20 6c 69 73 74 20 | 6f 66 20 66 69 6c 65 73 |he list |of files|
|00004d30| 20 74 6f 20 64 6f 2e 20 | 20 41 66 74 65 72 20 2d | to do. | After -|
|00004d40| 78 0a 58 28 65 78 63 6c | 75 64 65 29 2c 20 74 68 |x.X(excl|ude), th|
|00004d50| 65 20 6e 61 6d 65 73 20 | 61 72 65 20 72 65 6d 6f |e names |are remo|
|00004d60| 76 65 64 20 66 72 6f 6d | 20 74 68 65 20 74 6f 2d |ved from| the to-|
|00004d70| 64 6f 20 6c 69 73 74 20 | 69 6e 73 74 65 61 64 20 |do list |instead |
|00004d80| 6f 66 20 61 64 64 65 64 | 2e 0a 58 2e 50 50 0a 54 |of added|..X.PP.T|
|00004d90| 68 65 20 70 61 74 74 65 | 72 6e 20 6d 61 74 63 68 |he patte|rn match|
|00004da0| 69 6e 67 20 69 6e 63 6c | 75 64 65 73 20 74 68 65 |ing incl|udes the|
|00004db0| 20 70 61 74 68 2c 20 61 | 6e 64 20 73 6f 20 70 61 | path, a|nd so pa|
|00004dc0| 74 74 65 72 6e 73 20 6c | 69 6b 65 20 5c 5c 2a 2e |tterns l|ike \\*.|
|00004dd0| 6f 20 6d 61 74 63 68 0a | 6e 61 6d 65 73 20 74 68 |o match.|names th|
|00004de0| 61 74 20 65 6e 64 20 69 | 6e 20 22 2e 6f 22 2c 20 |at end i|n ".o", |
|00004df0| 6e 6f 20 6d 61 74 74 65 | 72 20 77 68 61 74 20 74 |no matte|r what t|
|00004e00| 68 65 20 70 61 74 68 20 | 70 72 65 66 69 78 20 69 |he path |prefix i|
|00004e10| 73 2e 20 20 4e 6f 74 65 | 20 74 68 61 74 20 74 68 |s. Note| that th|
|00004e20| 65 0a 62 61 63 6b 73 6c | 61 73 68 20 6d 75 73 74 |e.backsl|ash must|
|00004e30| 20 70 72 65 63 65 64 65 | 20 65 76 65 72 79 20 73 | precede| every s|
|00004e40| 70 65 63 69 61 6c 20 63 | 68 61 72 61 63 74 65 72 |pecial c|haracter|
|00004e50| 20 28 69 2e 65 2e 20 3f | 2a 5b 5d 29 2c 20 6f 72 | (i.e. ?|*[]), or|
|00004e60| 20 74 68 65 20 65 6e 74 | 69 72 65 0a 61 72 67 75 | the ent|ire.argu|
|00004e70| 6d 65 6e 74 20 6d 75 73 | 74 20 62 65 20 65 6e 63 |ment mus|t be enc|
|00004e80| 6c 6f 73 65 64 20 69 6e | 20 64 6f 75 62 6c 65 20 |losed in| double |
|00004e90| 71 75 6f 74 65 73 20 28 | 22 22 29 2e 0a 58 2e 50 |quotes (|"")..X.P|
|00004ea0| 50 0a 49 6e 20 67 65 6e | 65 72 61 6c 2c 20 75 73 |P.In gen|eral, us|
|00004eb0| 69 6e 67 20 62 61 63 6b | 73 6c 61 73 68 20 74 6f |ing back|slash to|
|00004ec0| 20 6d 61 6b 65 0a 58 2e | 49 20 5a 69 70 0a 64 6f | make.X.|I Zip.do|
|00004ed0| 20 74 68 65 20 70 61 74 | 74 65 72 6e 20 6d 61 74 | the pat|tern mat|
|00004ee0| 63 68 69 6e 67 20 69 73 | 20 75 73 65 64 0a 77 69 |ching is| used.wi|
|00004ef0| 74 68 20 74 68 65 20 2d | 66 20 28 66 72 65 73 68 |th the -|f (fresh|
|00004f00| 65 6e 29 20 61 6e 64 20 | 2d 64 20 28 64 65 6c 65 |en) and |-d (dele|
|00004f10| 74 65 29 20 6f 70 74 69 | 6f 6e 73 2c 20 61 6e 64 |te) opti|ons, and|
|00004f20| 20 73 6f 6d 65 74 69 6d | 65 73 20 61 66 74 65 72 | sometim|es after|
|00004f30| 20 74 68 65 0a 58 2d 78 | 20 28 65 78 63 6c 75 64 | the.X-x| (exclud|
|00004f40| 65 29 20 6f 70 74 69 6f | 6e 20 77 68 65 6e 20 75 |e) optio|n when u|
|00004f50| 73 65 64 20 77 69 74 68 | 20 61 6e 79 20 6f 70 65 |sed with| any ope|
|00004f60| 72 61 74 69 6f 6e 20 28 | 61 64 64 2c 20 2d 75 2c |ration (|add, -u,|
|00004f70| 20 2d 66 2c 20 6f 72 20 | 2d 64 29 2e 0a 58 2e 49 | -f, or |-d)..X.I|
|00004f80| 20 5a 69 70 0a 77 69 6c | 6c 20 6e 65 76 65 72 20 | Zip.wil|l never |
|00004f90| 75 73 65 20 70 61 74 74 | 65 72 6e 20 6d 61 74 63 |use patt|ern matc|
|00004fa0| 68 69 6e 67 20 74 6f 20 | 73 65 61 72 63 68 20 74 |hing to |search t|
|00004fb0| 68 65 20 66 69 6c 65 20 | 73 79 73 74 65 6d 2e 20 |he file |system. |
|00004fc0| 20 49 66 0a 58 2e 49 20 | 5a 69 70 0a 68 61 73 20 | If.X.I |Zip.has |
|00004fd0| 72 65 63 75 72 73 65 64 | 20 69 6e 74 6f 20 61 20 |recursed| into a |
|00004fe0| 64 69 72 65 63 74 6f 72 | 79 2c 20 61 6c 6c 20 66 |director|y, all f|
|00004ff0| 69 6c 65 73 20 28 61 6e | 64 20 61 6c 6c 20 64 69 |iles (an|d all di|
|00005000| 72 65 63 74 6f 72 69 65 | 73 29 20 69 6e 20 74 68 |rectorie|s) in th|
|00005010| 65 72 65 0a 61 72 65 20 | 66 61 69 72 20 67 61 6d |ere.are |fair gam|
|00005020| 65 2e 0a 58 2e 53 48 20 | 43 4f 50 59 52 49 47 48 |e..X.SH |COPYRIGH|
|00005030| 54 0a 43 6f 70 79 72 69 | 67 68 74 20 28 43 29 20 |T.Copyri|ght (C) |
|00005040| 31 39 39 30 2c 31 39 39 | 31 20 4d 61 72 6b 20 41 |1990,199|1 Mark A|
|00005050| 64 6c 65 72 2c 20 52 69 | 63 68 61 72 64 20 42 2e |dler, Ri|chard B.|
|00005060| 20 57 61 6c 65 73 2c 20 | 61 6e 64 20 4a 65 61 6e | Wales, |and Jean|
|00005070| 2d 6c 6f 75 70 20 47 61 | 69 6c 6c 79 2e 0a 50 65 |-loup Ga|illy..Pe|
|00005080| 72 6d 69 73 73 69 6f 6e | 20 69 73 20 67 72 61 6e |rmission| is gran|
|00005090| 74 65 64 20 74 6f 20 61 | 6e 79 20 69 6e 64 69 76 |ted to a|ny indiv|
|000050a0| 69 64 75 61 6c 20 6f 72 | 20 69 6e 73 74 69 74 75 |idual or| institu|
|000050b0| 74 69 6f 6e 20 74 6f 20 | 75 73 65 2c 20 63 6f 70 |tion to |use, cop|
|000050c0| 79 2c 20 6f 72 0a 72 65 | 64 69 73 74 72 69 62 75 |y, or.re|distribu|
|000050d0| 74 65 20 74 68 69 73 20 | 73 6f 66 74 77 61 72 65 |te this |software|
|000050e0| 20 73 6f 20 6c 6f 6e 67 | 20 61 73 20 61 6c 6c 20 | so long| as all |
|000050f0| 6f 66 20 74 68 65 20 6f | 72 69 67 69 6e 61 6c 20 |of the o|riginal |
|00005100| 66 69 6c 65 73 20 61 72 | 65 20 69 6e 63 6c 75 64 |files ar|e includ|
|00005110| 65 64 0a 75 6e 6d 6f 64 | 69 66 69 65 64 2c 20 74 |ed.unmod|ified, t|
|00005120| 68 61 74 20 69 74 20 69 | 73 20 6e 6f 74 20 73 6f |hat it i|s not so|
|00005130| 6c 64 20 66 6f 72 20 70 | 72 6f 66 69 74 2c 20 61 |ld for p|rofit, a|
|00005140| 6e 64 20 74 68 61 74 20 | 74 68 69 73 20 63 6f 70 |nd that |this cop|
|00005150| 79 72 69 67 68 74 20 6e | 6f 74 69 63 65 0a 69 73 |yright n|otice.is|
|00005160| 20 72 65 74 61 69 6e 65 | 64 2e 0a 58 2e 53 48 20 | retaine|d..X.SH |
|00005170| 41 43 4b 4e 4f 57 4c 45 | 44 47 45 4d 45 4e 54 53 |ACKNOWLE|DGEMENTS|
|00005180| 0a 54 68 61 6e 6b 73 20 | 74 6f 20 52 2e 20 50 2e |.Thanks |to R. P.|
|00005190| 20 42 79 72 6e 65 20 66 | 6f 72 20 68 69 73 20 53 | Byrne f|or his S|
|000051a0| 68 72 69 6e 6b 2e 50 61 | 73 20 70 72 6f 67 72 61 |hrink.Pa|s progra|
|000051b0| 6d 20 77 68 69 63 68 20 | 69 6e 73 70 69 72 65 64 |m which |inspired|
|000051c0| 20 74 68 69 73 20 70 72 | 6f 6a 65 63 74 2c 0a 61 | this pr|oject,.a|
|000051d0| 6e 64 20 66 72 6f 6d 20 | 77 68 69 63 68 20 74 68 |nd from |which th|
|000051e0| 65 20 73 68 72 69 6e 6b | 20 61 6c 67 6f 72 69 74 |e shrink| algorit|
|000051f0| 68 6d 20 77 61 73 20 73 | 74 6f 6c 65 6e 3b 20 74 |hm was s|tolen; t|
|00005200| 6f 20 50 68 69 6c 20 4b | 61 74 7a 20 66 6f 72 20 |o Phil K|atz for |
|00005210| 6d 61 6b 69 6e 67 20 74 | 68 65 20 7a 69 70 0a 66 |making t|he zip.f|
|00005220| 69 6c 65 20 66 6f 72 6d | 61 74 2c 20 63 6f 6d 70 |ile form|at, comp|
|00005230| 72 65 73 73 69 6f 6e 20 | 66 6f 72 6d 61 74 2c 20 |ression |format, |
|00005240| 61 6e 64 20 2e 5a 49 50 | 20 66 69 6c 65 6e 61 6d |and .ZIP| filenam|
|00005250| 65 20 65 78 74 65 6e 73 | 69 6f 6e 20 61 6c 6c 20 |e extens|ion all |
|00005260| 70 75 62 6c 69 63 20 64 | 6f 6d 61 69 6e 3b 0a 74 |public d|omain;.t|
|00005270| 6f 20 4b 65 69 74 68 20 | 50 65 74 65 72 73 65 6e |o Keith |Petersen|
|00005280| 20 66 6f 72 20 70 72 6f | 76 69 64 69 6e 67 20 61 | for pro|viding a|
|00005290| 20 6d 61 69 6c 69 6e 67 | 20 6c 69 73 74 20 61 6e | mailing| list an|
|000052a0| 64 20 66 74 70 20 73 69 | 74 65 20 66 6f 72 20 74 |d ftp si|te for t|
|000052b0| 68 65 20 49 4e 46 4f 2d | 5a 49 50 0a 67 72 6f 75 |he INFO-|ZIP.grou|
|000052c0| 70 20 74 6f 20 75 73 65 | 3b 20 61 6e 64 20 6d 6f |p to use|; and mo|
|000052d0| 73 74 20 69 6d 70 6f 72 | 74 61 6e 74 6c 79 2c 20 |st impor|tantly, |
|000052e0| 74 6f 20 74 68 65 20 49 | 4e 46 4f 2d 5a 49 50 20 |to the I|NFO-ZIP |
|000052f0| 67 72 6f 75 70 20 69 74 | 73 65 6c 66 20 28 6c 69 |group it|self (li|
|00005300| 73 74 65 64 20 69 6e 0a | 74 68 65 20 66 69 6c 65 |sted in.|the file|
|00005310| 20 69 6e 66 6f 7a 69 70 | 2e 77 68 6f 29 20 77 69 | infozip|.who) wi|
|00005320| 74 68 6f 75 74 20 77 68 | 6f 73 65 20 74 69 72 65 |thout wh|ose tire|
|00005330| 6c 65 73 73 20 74 65 73 | 74 69 6e 67 20 61 6e 64 |less tes|ting and|
|00005340| 20 62 75 67 2d 66 69 78 | 69 6e 67 20 65 66 66 6f | bug-fix|ing effo|
|00005350| 72 74 73 0a 61 20 70 6f | 72 74 61 62 6c 65 0a 58 |rts.a po|rtable.X|
|00005360| 2e 49 20 5a 69 70 0a 77 | 6f 75 6c 64 20 6e 6f 74 |.I Zip.w|ould not|
|00005370| 20 68 61 76 65 20 62 65 | 65 6e 20 70 6f 73 73 69 | have be|en possi|
|00005380| 62 6c 65 2e 20 20 46 69 | 6e 61 6c 6c 79 20 77 65 |ble. Fi|nally we|
|00005390| 20 73 68 6f 75 6c 64 20 | 74 68 61 6e 6b 20 28 62 | should |thank (b|
|000053a0| 6c 61 6d 65 29 20 74 68 | 65 20 49 4e 46 4f 2d 5a |lame) th|e INFO-Z|
|000053b0| 49 50 0a 6d 6f 64 65 72 | 61 74 6f 72 2c 20 44 61 |IP.moder|ator, Da|
|000053c0| 76 69 64 20 4b 69 72 73 | 63 68 62 61 75 6d 20 66 |vid Kirs|chbaum f|
|000053d0| 6f 72 20 67 65 74 74 69 | 6e 67 20 75 73 20 69 6e |or getti|ng us in|
|000053e0| 74 6f 20 74 68 69 73 20 | 6d 65 73 73 20 69 6e 20 |to this |mess in |
|000053f0| 74 68 65 20 66 69 72 73 | 74 20 70 6c 61 63 65 2e |the firs|t place.|
|00005400| 0a 58 2e 53 48 20 22 53 | 45 45 20 41 4c 53 4f 22 |.X.SH "S|EE ALSO"|
|00005410| 0a 75 6e 7a 69 70 28 31 | 29 2c 20 74 61 72 28 31 |.unzip(1|), tar(1|
|00005420| 29 2c 20 63 6f 6d 70 72 | 65 73 73 28 31 29 0a 58 |), compr|ess(1).X|
|00005430| 2e 53 48 20 42 55 47 53 | 0a 56 65 72 73 69 6f 6e |.SH BUGS|.Version|
|00005440| 73 20 6f 66 20 50 4b 55 | 4e 5a 49 50 20 62 65 66 |s of PKU|NZIP bef|
|00005450| 6f 72 65 20 31 2e 31 20 | 68 61 76 65 20 61 20 62 |ore 1.1 |have a b|
|00005460| 75 67 20 74 68 61 74 20 | 6f 6e 20 72 61 72 65 20 |ug that |on rare |
|00005470| 6f 63 63 61 73 69 6f 6e | 73 20 77 69 6c 6c 20 70 |occasion|s will p|
|00005480| 72 65 76 65 6e 74 0a 69 | 74 20 66 72 6f 6d 20 75 |revent.i|t from u|
|00005490| 6e 7a 69 70 70 69 6e 67 | 20 66 69 6c 65 73 20 70 |nzipping| files p|
|000054a0| 72 6f 64 75 63 65 64 20 | 62 79 0a 58 2e 49 20 5a |roduced |by.X.I Z|
|000054b0| 69 70 0a 6f 72 20 50 4b | 5a 49 50 20 31 2e 31 2e |ip.or PK|ZIP 1.1.|
|000054c0| 20 20 49 66 20 79 6f 75 | 20 65 78 70 65 72 69 65 | If you| experie|
|000054d0| 6e 63 65 20 73 75 63 68 | 20 70 72 6f 62 6c 65 6d |nce such| problem|
|000054e0| 73 2c 20 77 65 20 72 65 | 63 6f 6d 6d 65 6e 64 20 |s, we re|commend |
|000054f0| 74 68 61 74 20 79 6f 75 | 20 67 65 74 0a 50 4b 55 |that you| get.PKU|
|00005500| 4e 5a 49 50 20 31 2e 31 | 20 6f 72 20 74 68 65 20 |NZIP 1.1| or the |
|00005510| 70 6f 72 74 61 62 6c 65 | 0a 58 2e 49 20 55 6e 7a |portable|.X.I Unz|
|00005520| 69 70 2c 0a 6e 65 69 74 | 68 65 72 20 6f 66 20 77 |ip,.neit|her of w|
|00005530| 68 69 63 68 20 68 61 76 | 65 20 74 68 69 73 20 70 |hich hav|e this p|
|00005540| 72 6f 62 6c 65 6d 2e 0a | 58 2e 50 50 0a 55 6e 64 |roblem..|X.PP.Und|
|00005550| 65 72 20 4d 53 44 4f 53 | 2c 20 5a 69 70 20 77 69 |er MSDOS|, Zip wi|
|00005560| 6c 6c 20 66 69 6e 64 20 | 68 69 64 64 65 6e 20 61 |ll find |hidden a|
|00005570| 6e 64 20 73 79 73 74 65 | 6d 20 66 69 6c 65 73 2c |nd syste|m files,|
|00005580| 20 62 75 74 20 6e 6f 74 | 20 73 65 74 20 74 68 65 | but not| set the|
|00005590| 0a 61 74 74 72 69 62 75 | 74 65 73 20 61 70 70 72 |.attribu|tes appr|
|000055a0| 6f 70 72 69 61 74 65 6c | 79 20 69 6e 20 74 68 65 |opriatel|y in the|
|000055b0| 20 7a 69 70 20 66 69 6c | 65 20 73 6f 20 74 68 61 | zip fil|e so tha|
|000055c0| 74 20 55 6e 7a 69 70 20 | 63 61 6e 20 72 65 73 74 |t Unzip |can rest|
|000055d0| 6f 72 65 20 74 68 65 6d | 2e 0a 54 68 69 73 20 77 |ore them|..This w|
|000055e0| 69 6c 6c 20 62 65 20 66 | 69 78 65 64 20 69 6e 20 |ill be f|ixed in |
|000055f0| 74 68 65 20 6e 65 78 74 | 20 76 65 72 73 69 6f 6e |the next| version|
|00005600| 2e 0a 58 2e 50 50 0a 55 | 6e 64 65 72 20 56 4d 53 |..X.PP.U|nder VMS|
|00005610| 2c 20 6e 6f 74 20 61 6c | 6c 20 6f 66 20 74 68 65 |, not al|l of the|
|00005620| 20 6f 64 64 20 66 69 6c | 65 20 66 6f 72 6d 61 74 | odd fil|e format|
|00005630| 73 20 61 72 65 20 74 72 | 65 61 74 65 64 20 70 72 |s are tr|eated pr|
|00005640| 6f 70 65 72 6c 79 2e 20 | 20 4f 6e 6c 79 0a 73 74 |operly. | Only.st|
|00005650| 72 65 61 6d 2d 4c 46 20 | 66 6f 72 6d 61 74 20 7a |ream-LF |format z|
|00005660| 69 70 20 66 69 6c 65 73 | 20 61 72 65 20 65 78 70 |ip files| are exp|
|00005670| 65 63 74 65 64 20 74 6f | 20 77 6f 72 6b 20 77 69 |ected to| work wi|
|00005680| 74 68 20 5a 69 70 2e 20 | 20 4f 74 68 65 72 73 20 |th Zip. | Others |
|00005690| 63 61 6e 20 62 65 0a 63 | 6f 6e 76 65 72 74 65 64 |can be.c|onverted|
|000056a0| 20 75 73 69 6e 67 20 52 | 61 68 75 6c 20 44 68 65 | using R|ahul Dhe|
|000056b0| 73 69 27 73 20 42 49 4c | 46 20 70 72 6f 67 72 61 |si's BIL|F progra|
|000056c0| 6d 2e 20 20 54 68 65 20 | 6e 65 78 74 20 76 65 72 |m. The |next ver|
|000056d0| 73 69 6f 6e 20 6f 66 20 | 5a 69 70 20 77 69 6c 6c |sion of |Zip will|
|000056e0| 0a 68 61 6e 64 6c 65 20 | 73 6f 6d 65 20 6f 66 20 |.handle |some of |
|000056f0| 74 68 65 20 63 6f 6e 76 | 65 72 73 69 6f 6e 20 69 |the conv|ersion i|
|00005700| 6e 74 65 72 6e 61 6c 6c | 79 2e 0a 58 2e 50 50 0a |nternall|y..X.PP.|
|00005710| 4c 49 4b 45 20 41 4e 59 | 54 48 49 4e 47 20 45 4c |LIKE ANY|THING EL|
|00005720| 53 45 20 54 48 41 54 27 | 53 20 46 52 45 45 2c 20 |SE THAT'|S FREE, |
|00005730| 5a 49 50 20 41 4e 44 20 | 49 54 53 20 41 53 53 4f |ZIP AND |ITS ASSO|
|00005740| 43 49 41 54 45 44 20 55 | 54 49 4c 49 54 49 45 53 |CIATED U|TILITIES|
|00005750| 20 41 52 45 0a 50 52 4f | 56 49 44 45 44 20 41 53 | ARE.PRO|VIDED AS|
|00005760| 20 49 53 20 41 4e 44 20 | 43 4f 4d 45 20 57 49 54 | IS AND |COME WIT|
|00005770| 48 20 4e 4f 20 57 41 52 | 52 41 4e 54 59 20 4f 46 |H NO WAR|RANTY OF|
|00005780| 20 41 4e 59 20 4b 49 4e | 44 2c 20 45 49 54 48 45 | ANY KIN|D, EITHE|
|00005790| 52 20 45 58 50 52 45 53 | 53 45 44 20 4f 52 0a 49 |R EXPRES|SED OR.I|
|000057a0| 4d 50 4c 49 45 44 2e 20 | 49 4e 20 4e 4f 20 45 56 |MPLIED. |IN NO EV|
|000057b0| 45 4e 54 20 57 49 4c 4c | 20 54 48 45 20 43 4f 50 |ENT WILL| THE COP|
|000057c0| 59 52 49 47 48 54 20 48 | 4f 4c 44 45 52 53 20 42 |YRIGHT H|OLDERS B|
|000057d0| 45 20 4c 49 41 42 4c 45 | 20 46 4f 52 20 41 4e 59 |E LIABLE| FOR ANY|
|000057e0| 20 44 41 4d 41 47 45 53 | 0a 52 45 53 55 4c 54 49 | DAMAGES|.RESULTI|
|000057f0| 4e 47 20 46 52 4f 4d 20 | 54 48 45 20 55 53 45 20 |NG FROM |THE USE |
|00005800| 4f 46 20 54 48 49 53 20 | 53 4f 46 54 57 41 52 45 |OF THIS |SOFTWARE|
|00005810| 2e 0a 58 2e 50 50 0a 54 | 68 61 74 20 68 61 76 69 |..X.PP.T|hat havi|
|00005820| 6e 67 20 62 65 65 6e 20 | 73 61 69 64 2c 20 70 6c |ng been |said, pl|
|00005830| 65 61 73 65 20 73 65 6e | 64 20 61 6e 79 20 70 72 |ease sen|d any pr|
|00005840| 6f 62 6c 65 6d 73 20 6f | 72 20 63 6f 6d 6d 65 6e |oblems o|r commen|
|00005850| 74 73 20 76 69 61 20 65 | 6d 61 69 6c 20 74 6f 0a |ts via e|mail to.|
|00005860| 74 68 65 20 49 6e 74 65 | 72 6e 65 74 20 61 64 64 |the Inte|rnet add|
|00005870| 72 65 73 73 0a 7a 69 70 | 5c 2d 62 75 67 73 40 63 |ress.zip|\-bugs@c|
|00005880| 73 2e 75 63 6c 61 2e 65 | 64 75 2e 20 20 46 6f 72 |s.ucla.e|du. For|
|00005890| 20 62 75 67 20 72 65 70 | 6f 72 74 73 2c 20 70 6c | bug rep|orts, pl|
|000058a0| 65 61 73 65 20 69 6e 63 | 6c 75 64 65 20 74 68 65 |ease inc|lude the|
|000058b0| 0a 76 65 72 73 69 6f 6e | 20 6f 66 20 5a 69 70 2c |.version| of Zip,|
|000058c0| 20 74 68 65 20 6d 61 6b | 65 20 6f 70 74 69 6f 6e | the mak|e option|
|000058d0| 73 20 79 6f 75 20 75 73 | 65 64 20 74 6f 20 63 6f |s you us|ed to co|
|000058e0| 6d 70 69 6c 65 20 69 74 | 2c 20 74 68 65 20 6d 61 |mpile it|, the ma|
|000058f0| 63 68 69 6e 65 20 61 6e | 64 0a 6f 70 65 72 61 74 |chine an|d.operat|
|00005900| 69 6e 67 20 73 79 73 74 | 65 6d 20 79 6f 75 20 61 |ing syst|em you a|
|00005910| 72 65 20 75 73 69 6e 67 | 2c 20 61 6e 64 20 61 73 |re using|, and as|
|00005920| 20 6d 75 63 68 20 61 64 | 64 69 74 69 6f 6e 61 6c | much ad|ditional|
|00005930| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 61 73 0a | informa|tion as.|
|00005940| 70 6f 73 73 69 62 6c 65 | 2e 20 20 54 68 61 6e 6b |possible|. Thank|
|00005950| 20 79 6f 75 20 66 6f 72 | 20 79 6f 75 72 20 73 75 | you for| your su|
|00005960| 70 70 6f 72 74 2e 0a 45 | 4e 44 5f 4f 46 5f 46 49 |pport..E|ND_OF_FI|
|00005970| 4c 45 0a 69 66 20 74 65 | 73 74 20 32 31 36 31 31 |LE.if te|st 21611|
|00005980| 20 2d 6e 65 20 60 77 63 | 20 2d 63 20 3c 27 7a 69 | -ne `wc| -c <'zi|
|00005990| 70 2e 31 27 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |p.1'`; t|hen. |
|000059a0| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 27 7a 69 |echo sha|r: \"'zi|
|000059b0| 70 2e 31 27 5c 22 20 75 | 6e 70 61 63 6b 65 64 20 |p.1'\" u|npacked |
|000059c0| 77 69 74 68 20 77 72 6f | 6e 67 20 73 69 7a 65 21 |with wro|ng size!|
|000059d0| 0a 66 69 0a 23 20 65 6e | 64 20 6f 66 20 27 7a 69 |.fi.# en|d of 'zi|
|000059e0| 70 2e 31 27 0a 66 69 0a | 69 66 20 74 65 73 74 20 |p.1'.fi.|if test |
|000059f0| 2d 66 20 27 7a 69 70 66 | 69 6c 65 2e 63 27 20 2d |-f 'zipf|ile.c' -|
|00005a00| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00005a10| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00005a20| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00005a30| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00005a40| 66 69 6c 65 20 5c 22 27 | 7a 69 70 66 69 6c 65 2e |file \"'|zipfile.|
|00005a50| 63 27 5c 22 0a 65 6c 73 | 65 0a 65 63 68 6f 20 73 |c'\".els|e.echo s|
|00005a60| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00005a70| 5c 22 27 7a 69 70 66 69 | 6c 65 2e 63 27 5c 22 20 |\"'zipfi|le.c'\" |
|00005a80| 5c 28 32 30 35 33 30 20 | 63 68 61 72 61 63 74 65 |\(20530 |characte|
|00005a90| 72 73 5c 29 0a 73 65 64 | 20 22 73 2f 5e 58 2f 2f |rs\).sed| "s/^X//|
|00005aa0| 22 20 3e 27 7a 69 70 66 | 69 6c 65 2e 63 27 20 3c |" >'zipf|ile.c' <|
|00005ab0| 3c 27 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 27 0a 58 |<'END_OF|_FILE'.X|
|00005ac0| 2f 2a 0a 58 0a 58 20 43 | 6f 70 79 72 69 67 68 74 |/*.X.X C|opyright|
|00005ad0| 20 28 43 29 20 31 39 39 | 30 2c 31 39 39 31 20 4d | (C) 199|0,1991 M|
|00005ae0| 61 72 6b 20 41 64 6c 65 | 72 2c 20 52 69 63 68 61 |ark Adle|r, Richa|
|00005af0| 72 64 20 42 2e 20 57 61 | 6c 65 73 2c 20 61 6e 64 |rd B. Wa|les, and|
|00005b00| 20 4a 65 61 6e 2d 6c 6f | 75 70 20 47 61 69 6c 6c | Jean-lo|up Gaill|
|00005b10| 79 2e 0a 58 20 50 65 72 | 6d 69 73 73 69 6f 6e 20 |y..X Per|mission |
|00005b20| 69 73 20 67 72 61 6e 74 | 65 64 20 74 6f 20 61 6e |is grant|ed to an|
|00005b30| 79 20 69 6e 64 69 76 69 | 64 75 61 6c 20 6f 72 20 |y indivi|dual or |
|00005b40| 69 6e 73 74 69 74 75 74 | 69 6f 6e 20 74 6f 20 75 |institut|ion to u|
|00005b50| 73 65 2c 20 63 6f 70 79 | 2c 20 6f 72 0a 58 20 72 |se, copy|, or.X r|
|00005b60| 65 64 69 73 74 72 69 62 | 75 74 65 20 74 68 69 73 |edistrib|ute this|
|00005b70| 20 73 6f 66 74 77 61 72 | 65 20 73 6f 20 6c 6f 6e | softwar|e so lon|
|00005b80| 67 20 61 73 20 61 6c 6c | 20 6f 66 20 74 68 65 20 |g as all| of the |
|00005b90| 6f 72 69 67 69 6e 61 6c | 20 66 69 6c 65 73 20 61 |original| files a|
|00005ba0| 72 65 20 69 6e 63 6c 75 | 64 65 64 0a 58 20 75 6e |re inclu|ded.X un|
|00005bb0| 6d 6f 64 69 66 69 65 64 | 2c 20 74 68 61 74 20 69 |modified|, that i|
|00005bc0| 74 20 69 73 20 6e 6f 74 | 20 73 6f 6c 64 20 66 6f |t is not| sold fo|
|00005bd0| 72 20 70 72 6f 66 69 74 | 2c 20 61 6e 64 20 74 68 |r profit|, and th|
|00005be0| 61 74 20 74 68 69 73 20 | 63 6f 70 79 72 69 67 68 |at this |copyrigh|
|00005bf0| 74 20 6e 6f 74 69 63 65 | 0a 58 20 69 73 20 72 65 |t notice|.X is re|
|00005c00| 74 61 69 6e 65 64 2e 0a | 58 0a 58 2a 2f 0a 58 0a |tained..|X.X*/.X.|
|00005c10| 58 2f 2a 0a 58 20 2a 20 | 20 7a 69 70 66 69 6c 65 |X/*.X * | zipfile|
|00005c20| 2e 63 20 62 79 20 4d 61 | 72 6b 20 41 64 6c 65 72 |.c by Ma|rk Adler|
|00005c30| 2e 0a 58 20 2a 2f 0a 58 | 0a 58 23 69 6e 63 6c 75 |..X */.X|.X#inclu|
|00005c40| 64 65 20 22 7a 69 70 2e | 68 22 0a 58 0a 58 0a 58 |de "zip.|h".X.X.X|
|00005c50| 2f 2a 20 4d 61 63 72 6f | 73 20 66 6f 72 20 63 6f |/* Macro|s for co|
|00005c60| 6e 76 65 72 74 69 6e 67 | 20 69 6e 74 65 67 65 72 |nverting| integer|
|00005c70| 73 20 69 6e 20 6c 69 74 | 74 6c 65 2d 65 6e 64 69 |s in lit|tle-endi|
|00005c80| 61 6e 20 74 6f 20 6d 61 | 63 68 69 6e 65 20 66 6f |an to ma|chine fo|
|00005c90| 72 6d 61 74 20 2a 2f 0a | 58 23 64 65 66 69 6e 65 |rmat */.|X#define|
|00005ca0| 20 53 48 28 61 29 20 28 | 28 28 75 73 68 29 28 75 | SH(a) (|((ush)(u|
|00005cb0| 63 68 29 28 61 29 5b 30 | 5d 29 20 7c 20 28 28 28 |ch)(a)[0|]) | (((|
|00005cc0| 75 73 68 29 28 75 63 68 | 29 28 61 29 5b 31 5d 29 |ush)(uch|)(a)[1])|
|00005cd0| 20 3c 3c 20 38 29 29 0a | 58 23 64 65 66 69 6e 65 | << 8)).|X#define|
|00005ce0| 20 4c 47 28 61 29 20 28 | 28 75 6c 67 29 53 48 28 | LG(a) (|(ulg)SH(|
|00005cf0| 61 29 20 7c 20 28 28 75 | 6c 67 29 53 48 28 28 61 |a) | ((u|lg)SH((a|
|00005d00| 29 2b 32 29 20 3c 3c 20 | 31 36 29 29 0a 58 0a 58 |)+2) << |16)).X.X|
|00005d10| 2f 2a 20 4d 61 63 72 6f | 73 20 66 6f 72 20 77 72 |/* Macro|s for wr|
|00005d20| 69 74 69 6e 67 20 6d 61 | 63 68 69 6e 65 20 69 6e |iting ma|chine in|
|00005d30| 74 65 67 65 72 73 20 74 | 6f 20 6c 69 74 74 6c 65 |tegers t|o little|
|00005d40| 2d 65 6e 64 69 61 6e 20 | 66 6f 72 6d 61 74 20 2a |-endian |format *|
|00005d50| 2f 0a 58 23 64 65 66 69 | 6e 65 20 50 55 54 53 48 |/.X#defi|ne PUTSH|
|00005d60| 28 61 2c 66 29 20 7b 70 | 75 74 63 28 28 63 68 61 |(a,f) {p|utc((cha|
|00005d70| 72 29 28 61 29 2c 28 66 | 29 29 3b 20 70 75 74 63 |r)(a),(f|)); putc|
|00005d80| 28 28 63 68 61 72 29 28 | 28 61 29 20 3e 3e 20 38 |((char)(|(a) >> 8|
|00005d90| 29 2c 28 66 29 29 3b 7d | 0a 58 23 64 65 66 69 6e |),(f));}|.X#defin|
|00005da0| 65 20 50 55 54 4c 47 28 | 61 2c 66 29 20 7b 50 55 |e PUTLG(|a,f) {PU|
|00005db0| 54 53 48 28 61 2c 66 29 | 20 50 55 54 53 48 28 28 |TSH(a,f)| PUTSH((|
|00005dc0| 61 29 20 3e 3e 20 31 36 | 2c 66 29 7d 0a 58 0a 58 |a) >> 16|,f)}.X.X|
|00005dd0| 0a 58 2f 2a 20 2d 2d 20 | 53 74 72 75 63 74 75 72 |.X/* -- |Structur|
|00005de0| 65 20 6f 66 20 61 20 5a | 49 50 20 66 69 6c 65 20 |e of a Z|IP file |
|00005df0| 2d 2d 20 2a 2f 0a 58 0a | 58 2f 2a 20 53 69 67 6e |-- */.X.|X/* Sign|
|00005e00| 61 74 75 72 65 73 20 66 | 6f 72 20 7a 69 70 20 66 |atures f|or zip f|
|00005e10| 69 6c 65 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ile info|rmation |
|00005e20| 68 65 61 64 65 72 73 20 | 2a 2f 0a 58 23 64 65 66 |headers |*/.X#def|
|00005e30| 69 6e 65 20 4c 4f 43 53 | 49 47 20 20 30 78 30 34 |ine LOCS|IG 0x04|
|00005e40| 30 33 34 62 35 30 4c 0a | 58 23 64 65 66 69 6e 65 |034b50L.|X#define|
|00005e50| 20 43 45 4e 53 49 47 20 | 20 30 78 30 32 30 31 34 | CENSIG | 0x02014|
|00005e60| 62 35 30 4c 0a 58 23 64 | 65 66 69 6e 65 20 45 4e |b50L.X#d|efine EN|
|00005e70| 44 53 49 47 20 20 30 78 | 30 36 30 35 34 62 35 30 |DSIG 0x|06054b50|
|00005e80| 4c 0a 58 0a 58 2f 2a 20 | 4f 66 66 73 65 74 73 20 |L.X.X/* |Offsets |
|00005e90| 6f 66 20 76 61 6c 75 65 | 73 20 69 6e 20 68 65 61 |of value|s in hea|
|00005ea0| 64 65 72 73 20 2a 2f 0a | 58 23 64 65 66 69 6e 65 |ders */.|X#define|
|00005eb0| 20 4c 4f 43 56 45 52 20 | 20 30 20 20 20 20 20 20 | LOCVER | 0 |
|00005ec0| 20 20 20 20 20 20 20 20 | 20 2f 2a 20 76 65 72 73 | | /* vers|
|00005ed0| 69 6f 6e 20 6e 65 65 64 | 65 64 20 74 6f 20 65 78 |ion need|ed to ex|
|00005ee0| 74 72 61 63 74 20 2a 2f | 0a 58 23 64 65 66 69 6e |tract */|.X#defin|
|00005ef0| 65 20 4c 4f 43 46 4c 47 | 20 20 32 20 20 20 20 20 |e LOCFLG| 2 |
|00005f00| 20 20 20 20 20 20 20 20 | 20 20 2f 2a 20 65 6e 63 | | /* enc|
|00005f10| 72 79 70 74 2c 20 69 6d | 70 6c 6f 73 69 6f 6e 20 |rypt, im|plosion |
|00005f20| 66 6c 61 67 73 20 2a 2f | 0a 58 23 64 65 66 69 6e |flags */|.X#defin|
|00005f30| 65 20 4c 4f 43 48 4f 57 | 20 20 34 20 20 20 20 20 |e LOCHOW| 4 |
|00005f40| 20 20 20 20 20 20 20 20 | 20 20 2f 2a 20 63 6f 6d | | /* com|
|00005f50| 70 72 65 73 73 69 6f 6e | 20 6d 65 74 68 6f 64 20 |pression| method |
|00005f60| 2a 2f 0a 58 23 64 65 66 | 69 6e 65 20 4c 4f 43 54 |*/.X#def|ine LOCT|
|00005f70| 49 4d 20 20 36 20 20 20 | 20 20 20 20 20 20 20 20 |IM 6 | |
|00005f80| 20 20 20 20 2f 2a 20 6c | 61 73 74 20 6d 6f 64 69 | /* l|ast modi|
|00005f90| 66 69 65 64 20 66 69 6c | 65 20 74 69 6d 65 2c 20 |fied fil|e time, |
|00005fa0| 44 4f 53 20 66 6f 72 6d | 61 74 20 2a 2f 0a 58 23 |DOS form|at */.X#|
|00005fb0| 64 65 66 69 6e 65 20 4c | 4f 43 44 41 54 20 20 38 |define L|OCDAT 8|
|00005fc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2f | | /|
|00005fd0| 2a 20 6c 61 73 74 20 6d | 6f 64 69 66 69 65 64 20 |* last m|odified |
|00005fe0| 66 69 6c 65 20 64 61 74 | 65 2c 20 44 4f 53 20 66 |file dat|e, DOS f|
|00005ff0| 6f 72 6d 61 74 20 2a 2f | 0a 58 23 64 65 66 69 6e |ormat */|.X#defin|
|00006000| 65 20 4c 4f 43 43 52 43 | 20 20 31 30 20 20 20 20 |e LOCCRC| 10 |
|00006010| 20 20 20 20 20 20 20 20 | 20 20 2f 2a 20 75 6e 63 | | /* unc|
|00006020| 6f 6d 70 72 65 73 73 65 | 64 20 63 72 63 2d 33 32 |ompresse|d crc-32|
|00006030| 20 66 6f 72 20 66 69 6c | 65 20 2a 2f 0a 58 23 64 | for fil|e */.X#d|
|00006040| 65 66 69 6e 65 20 4c 4f | 43 53 49 5a 20 20 31 34 |efine LO|CSIZ 14|
|00006050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2a | | /*|
|00006060| 20 63 6f 6d 70 72 65 73 | 73 65 64 20 73 69 7a 65 | compres|sed size|
|00006070| 20 69 6e 20 7a 69 70 20 | 66 69 6c 65 20 2a 2f 0a | in zip |file */.|
|00006080| 58 23 64 65 66 69 6e 65 | 20 4c 4f 43 4c 45 4e 20 |X#define| LOCLEN |
|00006090| 20 31 38 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | 18 | |
|000060a0| 20 2f 2a 20 75 6e 63 6f | 6d 70 72 65 73 73 65 64 | /* unco|mpressed|
|000060b0| 20 73 69 7a 65 20 2a 2f | 0a 58 23 64 65 66 69 6e | size */|.X#defin|
|000060c0| 65 20 4c 4f 43 4e 41 4d | 20 20 32 32 20 20 20 20 |e LOCNAM| 22 |
|000060d0| 20 20 20 20 20 20 20 20 | 20 20 2f 2a 20 6c 65 6e | | /* len|
|000060e0| 67 74 68 20 6f 66 20 66 | 69 6c 65 6e 61 6d 65 20 |gth of f|ilename |
|000060f0| 2a 2f 0a 58 23 64 65 66 | 69 6e 65 20 4c 4f 43 45 |*/.X#def|ine LOCE|
|00006100| 58 54 20 20 32 34 20 20 | 20 20 20 20 20 20 20 20 |XT 24 | |
|00006110| 20 20 20 20 2f 2a 20 6c | 65 6e 67 74 68 20 6f 66 | /* l|ength of|
|00006120| 20 65 78 74 72 61 20 66 | 69 65 6c 64 20 2a 2f 0a | extra f|ield */.|
|00006130| 58 0a 58 23 64 65 66 69 | 6e 65 20 43 45 4e 56 45 |X.X#defi|ne CENVE|
|00006140| 4d 20 20 30 20 20 20 20 | 20 20 20 20 20 20 20 20 |M 0 | |
|00006150| 20 20 20 2f 2a 20 76 65 | 72 73 69 6f 6e 20 6d 61 | /* ve|rsion ma|
|00006160| 64 65 20 62 79 20 2a 2f | 0a 58 23 64 65 66 69 6e |de by */|.X#defin|
|00006170| 65 20 43 45 4e 56 45 52 | 20 20 32 20 20 20 20 20 |e CENVER| 2 |
|00006180| 20 20 20 20 20 20 20 20 | 20 20 2f 2a 20 76 65 72 | | /* ver|
|00006190| 73 69 6f 6e 20 6e 65 65 | 64 65 64 20 74 6f 20 65 |sion nee|ded to e|
|000061a0| 78 74 72 61 63 74 20 2a | 2f 0a 58 23 64 65 66 69 |xtract *|/.X#defi|
|000061b0| 6e 65 20 43 45 4e 46 4c | 47 20 20 34 20 20 20 20 |ne CENFL|G 4 |
|000061c0| 20 20 20 20 20 20 20 20 | 20 20 20 2f 2a 20 65 6e | | /* en|
|000061d0| 63 72 79 70 74 2c 20 69 | 6d 70 6c 6f 73 69 6f 6e |crypt, i|mplosion|
|000061e0| 20 66 6c 61 67 73 20 2a | 2f 0a 58 23 64 65 66 69 | flags *|/.X#defi|
|000061f0| 6e 65 20 43 45 4e 48 4f | 57 20 20 36 20 20 20 20 |ne CENHO|W 6 |
|00006200| 20 20 20 20 20 20 20 20 | 20 20 20 2f 2a 20 63 6f | | /* co|
|00006210| 6d 70 72 65 73 73 69 6f | 6e 20 6d 65 74 68 6f 64 |mpressio|n method|
|00006220| 20 2a 2f 0a 58 23 64 65 | 66 69 6e 65 20 43 45 4e | */.X#de|fine CEN|
|00006230| 54 49 4d 20 20 38 20 20 | 20 20 20 20 20 20 20 20 |TIM 8 | |
|00006240| 20 20 20 20 20 2f 2a 20 | 6c 61 73 74 20 6d 6f 64 | /* |last mod|
|00006250| 69 66 69 65 64 20 66 69 | 6c 65 20 74 69 6d 65 2c |ified fi|le time,|
|00006260| 20 44 4f 53 20 66 6f 72 | 6d 61 74 20 2a 2f 0a 58 | DOS for|mat */.X|
|00006270| 23 64 65 66 69 6e 65 20 | 43 45 4e 44 41 54 20 20 |#define |CENDAT |
|00006280| 31 30 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |10 | |
|00006290| 2f 2a 20 6c 61 73 74 20 | 6d 6f 64 69 66 69 65 64 |/* last |modified|
|000062a0| 20 66 69 6c 65 20 64 61 | 74 65 2c 20 44 4f 53 20 | file da|te, DOS |
|000062b0| 66 6f 72 6d 61 74 20 2a | 2f 0a 58 23 64 65 66 69 |format *|/.X#defi|
|000062c0| 6e 65 20 43 45 4e 43 52 | 43 20 20 31 32 20 20 20 |ne CENCR|C 12 |
|000062d0| 20 20 20 20 20 20 20 20 | 20 20 20 2f 2a 20 75 6e | | /* un|
|000062e0| 63 6f 6d 70 72 65 73 73 | 65 64 20 63 72 63 2d 33 |compress|ed crc-3|
|000062f0| 32 20 66 6f 72 20 66 69 | 6c 65 20 2a 2f 0a 58 23 |2 for fi|le */.X#|
|00006300| 64 65 66 69 6e 65 20 43 | 45 4e 53 49 5a 20 20 31 |define C|ENSIZ 1|
|00006310| 36 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2f |6 | /|
|00006320| 2a 20 63 6f 6d 70 72 65 | 73 73 65 64 20 73 69 7a |* compre|ssed siz|
|00006330| 65 20 69 6e 20 7a 69 70 | 20 66 69 6c 65 20 2a 2f |e in zip| file */|
|00006340| 0a 58 23 64 65 66 69 6e | 65 20 43 45 4e 4c 45 4e |.X#defin|e CENLEN|
|00006350| 20 20 32 30 20 20 20 20 | 20 20 20 20 20 20 20 20 | 20 | |
|00006360| 20 20 2f 2a 20 75 6e 63 | 6f 6d 70 72 65 73 73 65 | /* unc|ompresse|
|00006370| 64 20 73 69 7a 65 20 2a | 2f 0a 58 23 64 65 66 69 |d size *|/.X#defi|
|00006380| 6e 65 20 43 45 4e 4e 41 | 4d 20 20 32 34 20 20 20 |ne CENNA|M 24 |
|00006390| 20 20 20 20 20 20 20 20 | 20 20 20 2f 2a 20 6c 65 | | /* le|
|000063a0| 6e 67 74 68 20 6f 66 20 | 66 69 6c 65 6e 61 6d 65 |ngth of |filename|
|000063b0| 20 2a 2f 0a 58 23 64 65 | 66 69 6e 65 20 43 45 4e | */.X#de|fine CEN|
|000063c0| 45 58 54 20 20 32 36 20 | 20 20 20 20 20 20 20 20 |EXT 26 | |
|000063d0| 20 20 20 20 20 2f 2a 20 | 6c 65 6e 67 74 68 20 6f | /* |length o|
|000063e0| 66 20 65 78 74 72 61 20 | 66 69 65 6c 64 20 2a 2f |f extra |field */|
|000063f0| 0a 58 23 64 65 66 69 6e | 65 20 43 45 4e 43 4f 4d |.X#defin|e CENCOM|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.