sq - squeeze a sorted word list unsq - unsqueeze a sorted word list
sq compresses a sorted list of words (a dictionary).
sort /usr/share/dict/words | sq | compress
will compress dict by about a factor of 4.
unsq uncompress the output of sq. For
will uncompress a dictionary compressed with
The squeezing is achieved by eliminating common prefixes,
and replacing them with a single character which encodes the
number of characters shared with the preceding word. The
prefix size is encoded as a single printable character: 0-9
represent 0-9, A-Z represent 10-35, and a-z represent