Annotated edit history of
sq(1) version 1 showing authors affecting page license.
View with all changes included.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
SQ |
|
|
2 |
!!!SQ |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
AUTHOR |
|
|
7 |
SEE ALSO |
|
|
8 |
---- |
|
|
9 |
!!NAME |
|
|
10 |
|
|
|
11 |
|
|
|
12 |
sq - squeeze a sorted word list unsq - unsqueeze a sorted word list |
|
|
13 |
!!SYNOPSIS |
|
|
14 |
|
|
|
15 |
|
|
|
16 |
__sq__ __ |
|
|
17 |
|
|
|
18 |
|
|
|
19 |
__unsq__ __ |
|
|
20 |
!!DESCRIPTION |
|
|
21 |
|
|
|
22 |
|
|
|
23 |
''sq'' compresses a sorted list of words (a dictionary). |
|
|
24 |
For example: |
|
|
25 |
|
|
|
26 |
|
|
|
27 |
sort /usr/share/dict/words | sq | compress |
|
|
28 |
|
|
|
29 |
|
|
|
30 |
will compress dict by about a factor of 4. |
|
|
31 |
|
|
|
32 |
|
|
|
33 |
''unsq'' uncompress the output of ''sq.'' For |
|
|
34 |
example: |
|
|
35 |
|
|
|
36 |
|
|
|
37 |
compress -d |
|
|
38 |
|
|
|
39 |
|
|
|
40 |
will uncompress a dictionary compressed with |
|
|
41 |
''sq.'' |
|
|
42 |
|
|
|
43 |
|
|
|
44 |
The squeezing is achieved by eliminating common prefixes, |
|
|
45 |
and replacing them with a single character which encodes the |
|
|
46 |
number of characters shared with the preceding word. The |
|
|
47 |
prefix size is encoded as a single printable character: 0-9 |
|
|
48 |
represent 0-9, A-Z represent 10-35, and a-z represent |
|
|
49 |
36-61. |
|
|
50 |
!!AUTHOR |
|
|
51 |
|
|
|
52 |
|
|
|
53 |
Mike Wexler |
|
|
54 |
!!SEE ALSO |
|
|
55 |
|
|
|
56 |
|
|
|
57 |
compress(1), sort(1). |
|
|
58 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.