- 论坛徽章:
- 0
|
关于ethers文件里的排序
原帖由 "nmgzw" 发表:
+0 -1 是不是说域1-2组成排序的主关键字
+2-3 ............域3-4。。。。。次关键字
。。。。。。。。。。。。。。。。。。。。
红袖姐,不知道我说的对不对啊?!
差不多了,弟弟。
+0 -1 表示 域 1
+1 -2 表示 域 2
+2 -3 表示 域 3
+3 -4 表示 域 4
man sort
...
[+pos1 [-pos2]]
(obsolete). Provide functionality equivalent to the
-kkeydef option.
pos1 and pos2 each have the form m.n optionally fol-
lowed by one or more of the flags bdfiMnr. A starting
position specified by +m.n is interpreted to mean the
n+1st character in the m+1st field. A missing .n means
.0, indicating the first character of the m+1st field.
If the b flag is in effect n is counted from the first
non-blank in the m+1st field; +m.0b refers to the
first non-blank character in the m+1st field.
A last position specified by -m.n is interpreted to
mean the nth character (including separators) after
the last character of the mth field. A missing .n
means .0, indicating the last character of the mth
field. If the b flag is in effect n is counted from
the last leading blank in the m+1st field; -m.1b
refers to the first non-blank in the m+1st field.
The fully specified +pos1 -pos2 form with type modif-
iers T and U:
+w.xT -y.zU
... |
|