DataMuseum.dk

Presents historical artifacts from the history of:

RC9000

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about RC9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: c

⟦60d4a6fec⟧

    Length: 2403 (0x963)
    Names: »compact.1«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./bsd/usr/man/cat1/compact.1« 

Default Hex Dump

0x000…020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f   ┆   _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆
0x020…040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 20 20 55 73 65 72 20 43 6f 6d 6d 61 6e   ┆ u_ a_ l             User Comman┆
0x040…060 64 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6d 70 61 63 74 28 31 29 0a 0a 0a 0a   ┆ds                compact(1)    ┆
0x060…080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20   ┆N N N NA A A AM M M ME E E E    ┆
0x080…0a0 20 20 63 6f 6d 70 61 63 74 2c 20 75 6e 63 6f 6d 70 61 63 74 2c 20 63 63 61 74 20 2d 20 63 6f 6d   ┆  compact, uncompact, ccat - com┆
0x0a0…0c0 70 72 65 73 73 20 61 6e 64 20 75 6e 63 6f 6d 70 72 65 73 73 20 66 69 6c 65 73 2c 0a 20 20 20 20   ┆press and uncompress files,     ┆
0x0c0…0e0 20 61 6e 64 20 63 61 74 20 74 68 65 6d 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e   ┆ and cat them  S S S SY Y Y YN N┆
0x0e0…100 08 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 63   ┆ N NT T T TA A A AX X X X      c┆
0x100…120 08 63 08 63 08 63 6f 08 6f 08 6f 08 6f 6d 08 6d 08 6d 08 6d 70 08 70 08 70 08 70 61 08 61 08 61   ┆ c c co o o om m m mp p p pa a a┆
0x120…140 08 61 63 08 63 08 63 08 63 74 08 74 08 74 08 74 20 5b 20 6e 61 6d 65 20 2e 2e 2e 20 5d 0a 20 20   ┆ ac c c ct t t t [ name ... ]   ┆
0x140…160 20 20 20 75 08 75 08 75 08 75 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6f 08 6f 08 6f 08 6f 6d   ┆   u u u un n n nc c c co o o om┆
0x160…180 08 6d 08 6d 08 6d 70 08 70 08 70 08 70 61 08 61 08 61 08 61 63 08 63 08 63 08 63 74 08 74 08 74   ┆ m m mp p p pa a a ac c c ct t t┆
0x180…1a0 08 74 20 5b 20 6e 61 6d 65 20 2e 2e 2e 20 20 5d 0a 20 20 20 20 20 63 08 63 08 63 08 63 63 08 63   ┆ t [ name ...  ]      c c c cc c┆
0x1a0…1c0 08 63 08 63 61 08 61 08 61 08 61 74 08 74 08 74 08 74 20 5b 20 66 69 6c 65 20 2e 2e 2e 20 5d 0a   ┆ c ca a a at t t t [ file ... ] ┆
0x1c0…1e0 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08 43 08 43 08 43 52 08 52   ┆ D D D DE E E ES S S SC C C CR R┆
0x1e0…200 08 52 08 52 49 08 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 54 08 54 49 08 49 08 49 08 49   ┆ R RI I I IP P P PT T T TI I I I┆
0x200…220 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 5f 08 63 5f 08 6f 5f 08 6d 5f 08 70   ┆O O O ON N N N      _ c_ o_ m_ p┆
0x220…240 5f 08 61 5f 08 63 5f 08 74 20 63 6f 6d 70 72 65 73 73 65 73 20 74 68 65 20 6e 61 6d 65 64 20 66   ┆_ a_ c_ t compresses the named f┆
0x240…260 69 6c 65 73 20 75 73 69 6e 67 20 61 6e 20 61 64 61 70 74 69 76 65 20 48 75 66 66 6d 61 6e 0a 20   ┆iles using an adaptive Huffman  ┆
0x260…280 20 20 20 20 63 6f 64 65 2e 20 20 49 66 20 6e 6f 20 66 69 6c 65 20 6e 61 6d 65 73 20 61 72 65 20   ┆    code.  If no file names are ┆
0x280…2a0 67 69 76 65 6e 2c 20 74 68 65 20 73 74 61 6e 64 61 72 64 20 69 6e 70 75 74 20 69 73 0a 20 20 20   ┆given, the standard input is    ┆
0x2a0…2c0 20 20 63 6f 6d 70 61 63 74 65 64 20 74 6f 20 74 68 65 20 73 74 61 6e 64 61 72 64 20 6f 75 74 70   ┆  compacted to the standard outp┆
0x2c0…2e0 75 74 2e 20 20 5f 08 63 5f 08 6f 5f 08 6d 5f 08 70 5f 08 61 5f 08 63 5f 08 74 20 6f 70 65 72 61   ┆ut.  _ c_ o_ m_ p_ a_ c_ t opera┆
0x2e0…300 74 65 73 20 61 73 20 61 6e 0a 20 20 20 20 20 6f 6e 2d 6c 69 6e 65 20 61 6c 67 6f 72 69 74 68 6d   ┆tes as an      on-line algorithm┆
0x300…320 2e 20 20 45 61 63 68 20 74 69 6d 65 20 61 20 62 79 74 65 20 69 73 20 72 65 61 64 2c 20 69 74 20   ┆.  Each time a byte is read, it ┆
0x320…340 69 73 20 65 6e 63 6f 64 65 64 0a 20 20 20 20 20 69 6d 6d 65 64 69 61 74 65 6c 79 20 61 63 63 6f   ┆is encoded      immediately acco┆
0x340…360 72 64 69 6e 67 20 74 6f 20 74 68 65 20 63 75 72 72 65 6e 74 20 70 72 65 66 69 78 20 63 6f 64 65   ┆rding to the current prefix code┆
0x360…380 2e 20 20 54 68 69 73 20 63 6f 64 65 0a 20 20 20 20 20 69 73 20 61 6e 20 6f 70 74 69 6d 61 6c 20   ┆.  This code      is an optimal ┆
0x380…3a0 48 75 66 66 6d 61 6e 20 63 6f 64 65 20 66 6f 72 20 74 68 65 20 73 65 74 20 6f 66 20 66 72 65 71   ┆Huffman code for the set of freq┆
0x3a0…3c0 75 65 6e 63 69 65 73 20 73 65 65 6e 0a 20 20 20 20 20 73 6f 20 66 61 72 2e 20 20 49 74 20 69 73   ┆uencies seen      so far.  It is┆
0x3c0…3e0 20 75 6e 6e 65 63 65 73 73 61 72 79 20 74 6f 20 70 72 65 70 65 6e 64 20 61 20 64 65 63 6f 64 69   ┆ unnecessary to prepend a decodi┆
0x3e0…400 6e 67 20 74 72 65 65 20 74 6f 20 74 68 65 0a 20 20 20 20 20 63 6f 6d 70 72 65 73 73 65 64 20 66   ┆ng tree to the      compressed f┆
0x400…420 69 6c 65 20 73 69 6e 63 65 20 74 68 65 20 65 6e 63 6f 64 65 72 20 61 6e 64 20 74 68 65 20 64 65   ┆ile since the encoder and the de┆
0x420…440 63 6f 64 65 72 20 73 74 61 72 74 20 69 6e 0a 20 20 20 20 20 74 68 65 20 73 61 6d 65 20 73 74 61   ┆coder start in      the same sta┆
0x440…460 74 65 20 61 6e 64 20 73 74 61 79 20 73 79 6e 63 68 72 6f 6e 69 7a 65 64 2e 20 20 46 75 72 74 68   ┆te and stay synchronized.  Furth┆
0x460…480 65 72 6d 6f 72 65 2c 20 5f 08 63 5f 08 6f 5f 08 6d 5f 08 70 5f 08 61 5f 08 63 5f 08 74 0a 20 20   ┆ermore, _ c_ o_ m_ p_ a_ c_ t   ┆
0x480…4a0 20 20 20 61 6e 64 20 5f 08 75 5f 08 6e 5f 08 63 5f 08 6f 5f 08 6d 5f 08 70 5f 08 61 5f 08 63 5f   ┆   and _ u_ n_ c_ o_ m_ p_ a_ c_┆
0x4a0…4c0 08 74 20 63 61 6e 20 6f 70 65 72 61 74 65 20 61 73 20 66 69 6c 74 65 72 73 2e 20 20 49 6e 20 70   ┆ t can operate as filters.  In p┆
0x4c0…4e0 61 72 74 69 63 75 6c 61 72 2c 0a 0a 20 20 20 20 20 20 20 20 20 20 2e 2e 2e 20 7c 20 63 6f 6d 70   ┆articular,            ... | comp┆
0x4e0…500 61 63 74 20 7c 20 75 6e 63 6f 6d 70 61 63 74 20 7c 20 2e 2e 2e 0a 0a 20 20 20 20 20 6f 70 65 72   ┆act | uncompact | ...       oper┆
0x500…520 61 74 65 73 20 61 73 20 61 20 28 76 65 72 79 20 73 6c 6f 77 29 20 6e 6f 2d 6f 70 2e 0a 0a 20 20   ┆ates as a (very slow) no-op.    ┆
0x520…540 20 20 20 57 68 65 6e 20 61 6e 20 61 72 67 75 6d 65 6e 74 20 5f 08 66 5f 08 69 5f 08 6c 5f 08 65   ┆   When an argument _ f_ i_ l_ e┆
0x540…560 20 69 73 20 67 69 76 65 6e 2c 20 69 74 20 69 73 20 63 6f 6d 70 61 63 74 65 64 20 61 6e 64 20 74   ┆ is given, it is compacted and t┆
0x560…580 68 65 0a 20 20 20 20 20 72 65 73 75 6c 74 69 6e 67 20 66 69 6c 65 20 69 73 20 70 6c 61 63 65 64   ┆he      resulting file is placed┆
0x580…5a0 20 69 6e 20 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 2e 5f 08 43 3b 20 5f 08 66 5f 08 69 5f 08 6c 5f   ┆ in _ f_ i_ l_ e._ C; _ f_ i_ l_┆
0x5a0…5c0 08 65 20 69 73 20 75 6e 6c 69 6e 6b 65 64 2e 20 20 54 68 65 0a 20 20 20 20 20 66 69 72 73 74 20   ┆ e is unlinked.  The      first ┆
0x5c0…5e0 74 77 6f 20 62 79 74 65 73 20 6f 66 20 74 68 65 20 63 6f 6d 70 61 63 74 65 64 20 66 69 6c 65 20   ┆two bytes of the compacted file ┆
0x5e0…600 63 6f 64 65 20 74 68 65 20 66 61 63 74 20 74 68 61 74 20 74 68 65 0a 20 20 20 20 20 66 69 6c 65   ┆code the fact that the      file┆
0x600…620 20 69 73 20 63 6f 6d 70 61 63 74 65 64 2e 20 20 54 68 69 73 20 63 6f 64 65 20 69 73 20 75 73 65   ┆ is compacted.  This code is use┆
0x620…640 64 20 74 6f 20 70 72 6f 68 69 62 69 74 20 72 65 63 6f 6d 70 61 63 2d 0a 20 20 20 20 20 74 69 6f   ┆d to prohibit recompac-      tio┆
0x640…660 6e 2e 0a 0a 20 20 20 20 20 54 68 65 20 61 6d 6f 75 6e 74 20 6f 66 20 63 6f 6d 70 72 65 73 73 69   ┆n.       The amount of compressi┆
0x660…680 6f 6e 20 74 6f 20 62 65 20 65 78 70 65 63 74 65 64 20 64 65 70 65 6e 64 73 20 6f 6e 20 74 68 65   ┆on to be expected depends on the┆
0x680…6a0 20 74 79 70 65 0a 20 20 20 20 20 6f 66 20 66 69 6c 65 20 62 65 69 6e 67 20 63 6f 6d 70 72 65 73   ┆ type      of file being compres┆
0x6a0…6c0 73 65 64 2e 20 20 54 79 70 69 63 61 6c 20 76 61 6c 75 65 73 20 6f 66 20 63 6f 6d 70 72 65 73 73   ┆sed.  Typical values of compress┆
0x6c0…6e0 69 6f 6e 0a 20 20 20 20 20 61 72 65 3a 20 54 65 78 74 20 28 33 38 25 29 2c 20 50 61 73 63 61 6c   ┆ion      are: Text (38%), Pascal┆
0x6e0…700 20 53 6f 75 72 63 65 20 28 34 33 25 29 2c 20 43 20 53 6f 75 72 63 65 20 28 33 36 25 29 20 61 6e   ┆ Source (43%), C Source (36%) an┆
0x700…720 64 0a 20 20 20 20 20 42 69 6e 61 72 79 20 28 31 39 25 29 2e 20 20 54 68 65 73 65 20 76 61 6c 75   ┆d      Binary (19%).  These valu┆
0x720…740 65 73 20 61 72 65 20 74 68 65 20 70 65 72 63 65 6e 74 61 67 65 73 20 6f 66 20 66 69 6c 65 0a 20   ┆es are the percentages of file  ┆
0x740…760 20 20 20 20 62 79 74 65 73 20 72 65 64 75 63 65 64 2e 0a 0a 20 20 20 20 20 5f 08 55 5f 08 6e 5f   ┆    bytes reduced.       _ U_ n_┆
0x760…780 08 63 5f 08 6f 5f 08 6d 5f 08 70 5f 08 61 5f 08 63 5f 08 74 20 72 65 73 74 6f 72 65 73 20 74 68   ┆ c_ o_ m_ p_ a_ c_ t restores th┆
0x780…7a0 65 20 6f 72 69 67 69 6e 61 6c 20 66 69 6c 65 20 66 72 6f 6d 20 61 20 66 69 6c 65 20 63 6f 6d 70   ┆e original file from a file comp┆
0x7a0…7c0 72 65 73 73 65 64 0a 20 20 20 20 20 62 79 20 5f 08 63 5f 08 6f 5f 08 6d 5f 08 70 5f 08 61 5f 08   ┆ressed      by _ c_ o_ m_ p_ a_ ┆
0x7c0…7e0 63 5f 08 74 2e 20 49 66 20 6e 6f 20 66 69 6c 65 20 6e 61 6d 65 73 20 61 72 65 20 67 69 76 65 6e   ┆c_ t. If no file names are given┆
0x7e0…800 2c 20 74 68 65 20 73 74 61 6e 64 61 72 64 20 69 6e 70 75 74 0a 20 20 20 20 20 69 73 20 75 6e 63   ┆, the standard input      is unc┆
0x800…820 6f 6d 70 61 63 74 65 64 20 74 6f 20 74 68 65 20 73 74 61 6e 64 61 72 64 20 6f 75 74 70 75 74 2e   ┆ompacted to the standard output.┆
0x820…840 0a 0a 20 20 20 20 20 5f 08 43 5f 08 63 5f 08 61 5f 08 74 20 63 61 74 73 20 74 68 65 20 6f 72 69   ┆       _ C_ c_ a_ t cats the ori┆
0x840…860 67 69 6e 61 6c 20 66 69 6c 65 20 66 72 6f 6d 20 61 20 66 69 6c 65 20 63 6f 6d 70 72 65 73 73 65   ┆ginal file from a file compresse┆
0x860…880 64 20 62 79 20 5f 08 63 5f 08 6f 5f 08 6d 5f 08 2d 0a 20 20 20 20 20 5f 08 70 5f 08 61 5f 08 63   ┆d by _ c_ o_ m_ -      _ p_ a_ c┆
0x880…8a0 5f 08 74 2c 20 77 69 74 68 6f 75 74 20 75 6e 63 6f 6d 70 72 65 73 73 69 6e 67 20 74 68 65 20 66   ┆_ t, without uncompressing the f┆
0x8a0…8c0 69 6c 65 2e 0a 0a 46 08 46 08 46 08 46 49 08 49 08 49 08 49 4c 08 4c 08 4c 08 4c 45 08 45 08 45   ┆ile.  F F F FI I I IL L L LE E E┆
0x8c0…8e0 08 45 53 08 53 08 53 08 53 0a 20 20 20 20 20 2a 2e 43 20 20 20 20 20 20 20 63 6f 6d 70 61 63 74   ┆ ES S S S      *.C       compact┆
0x8e0…900 65 64 20 66 69 6c 65 20 63 72 65 61 74 65 64 20 62 79 20 63 6f 6d 70 61 63 74 2c 20 72 65 6d 6f   ┆ed file created by compact, remo┆
0x900…920 76 65 64 20 62 79 0a 20 20 20 20 20 75 6e 63 6f 6d 70 61 63 74 0a 0a 4d 61 72 63 68 20 31 39 38   ┆ved by      uncompact  March 198┆
0x920…940 39 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆9                               ┆
0x940…960 20 20 20 20 20 54 58 20 55 73 65 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a   ┆     TX User's Reference        ┆
0x960…963 0a 0a 0a                                                                                          ┆   ┆