sq 中文man页面

系统
sq压缩一个排过序的单词列表(一个字典).比如:sort /usr/dict/words | sq | compress > words.sq.Z 会大概以4为因数压缩字典.

名称 (NAME)

sq - 压缩一个排过序的单词列表 unsq - 解压一个排过序的单词列表

总览 (SYNOPSIS)

sq < infile > outfile

unsq < infile > outfile

描述 (DESCRIPTION)

sq 压缩 一个 排过序的 单词 列表 (一个 字典). 比如:

sort /usr/dict/words | sq | compress > words.sq.Z

会 大概 以 4 为 因数 压缩 字典.

unsq 解压 sq 的 输出. 比如:

compress -d < words.sq.Z | unsq | sort -f -o words

会 解压 sq 压缩 的 字典. 根据 文档 描述, 它 通过 省略 相同 的 词头 来 压缩, 用 一个 单独 的 字符 取代这个 词头, 这个 字符 对 与 前一个词 相同的 字符数 进行 编码. 词头 的 大小 用 一个 编了码 的 可打印 的 字符 表示: 0-9 代表 0-9, A-Z 代表 10-35, a-z 代表 36-61.

作者 (AUTHOR)

Mike Wexler

参见 (SEE ALSO)

compress(1), sort(1).

#p#

NAME

sq - squeeze a sorted word list unsq - unsqueeze a sorted word list  

SYNOPSIS

sq < infile > outfile

unsq < infile > outfile  

DESCRIPTION

sq compresses a sorted list of words (a dictionary). For example:

sort /usr/share/dict/words | sq | compress > words.sq.Z

will compress dict by about a factor of 4.

unsq uncompress the output of sq. For example:

compress -d < words.sq.Z | unsq | sort -f -o words

will uncompress a dictionary compressed with sq. 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 36-61.  

AUTHOR

Mike Wexler  

SEE ALSO

compress(1), sort(1).

责任编辑:韩亚珊 来源: CMPP.net
相关推荐

2011-08-15 13:48:10

sq中文man

2011-08-24 16:48:36

man中文man

2011-08-15 10:21:09

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-25 15:39:42

fcloseall中文man

2011-08-25 15:00:15

cfgetispeed中文man

2011-08-19 18:35:50

issue中文man

2011-08-25 17:03:51

pclose中文man

2011-08-25 17:40:25

setvbuf中文man

2011-08-23 14:21:16

poweroff中文man

2011-08-24 15:52:59

intro中文man

2011-08-23 13:40:31

2011-08-25 15:54:08

ferror中文man

2011-08-25 17:24:54

puts中文man

2011-08-25 18:34:55

ungetc中文man

2011-08-23 10:03:40

useradd中文man

2011-08-23 10:29:02

chpasswd中文man

2011-08-23 10:34:22

convertquot中文man

2011-08-23 15:39:34

rpmbuild中文man
点赞
收藏

51CTO技术栈公众号