• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            Prayer

            在一般中尋求卓越
            posts - 1256, comments - 190, trackbacks - 0, articles - 0
              C++博客 :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

            sort 指定排序域的兩種方法

            Posted on 2010-05-12 14:12 Prayer 閱讀(668) 評(píng)論(0)  編輯 收藏 引用 所屬分類(lèi): Shell

                   The -k KeyDefinition flag uses the following form:

                   -k [ FStart [ .CStart ] ] [ Modifier ] [ , [ FEnd [ .CEnd ] ][ Modifier ] ]

                   The sort key includes all characters beginning with the field specified by the FStart variable and the column specified by
                   the CStart variable and ending with the field specified by the FEnd variable and the column specified by the CEnd variable.
                   If Fend is not specified, the last character of the line is assumed. If CEnd is not specified the last character in the
                   FEnd field is assumed. Any field or column number in the KeyDefinition variable may be omitted. The default values are:
                   FStart
                        Beginning of the line
                   CStart
                        First column in the field

                   FEnd
                        End of the line
                   CEnd
                        Last column of the field

                   If there is any spaces between the fields, sort considers them as separate fields.

                   The value of the Modifier variable can be one or more of the letters b, d, f, i, n, or r. The modifiers apply only to the
                   field definition they are attached to and have the same effect as the flag of the same letter. The modifier letter b
                   applies only to the end of the field definition to which it is attached. For example:

                   -k 3.2b,3r

                   specifies a sort key beginning in the second nonblank column of the third field and extending to the end of the third
                   field, with the sort on this key to be done in reverse collation order. If the FStart variable and the CStart variable fall
                   beyond the end of the line or after the FEnd variable and the CEnd variable, then the sort key is ignored.

                   A sort key can also be specified in the following manner:

                   [+[FSkip1] [.CSkip1] [Modifier] ] [-[FSkip2] [.CSkip2] [Modifier]]

                   The +FSkip1 variable specifies the number of fields skipped to reach the first field of the sort key and the +CSkip
                   variable specifies the number of columns skipped within that field to reach the first character in the sort key. The -FSkip
                   variable specifies the number of fields skipped to reach the first character after the sort key, and the -CSkip variable
                   specifies the number of columns to skip within that field. Any of the field and column skip counts may be omitted. The
                   defaults are:

                   FSkip1
                        Beginning of the line
                   CSkip1
                        Zero
                   FSkip2
                        End of the line
                   CSkip2
                        Zero

                   The modifiers specified by the Modifier variable are the same as in the -k flag key sort definition.

                   The field and column numbers specified by +FSkip1.CSkip1 variables are generally one less than the field and column number
                   of the sort key itself because these variables specify how many fields and columns to skip before reaching the sort key.
                   For example:

                   +2.1b -3r

                   specifies a sort key beginning in the second nonblank column of the third field and extending to the end of the third
                   field, with the sort on this key to be done in reverse collation order. The statement +2.1b specifies that two fields are
                   skipped and then the leading blanks and one more column are skipped. If the +FSkip1.CSkip1 variables fall beyond the end of

                   the line or after the -FSkip2.CSkip2 variables, then the sort key is ignored.

                   Note: The maximum number of fields on a line is 10.

            国内精品久久久久久野外| 亚洲国产婷婷香蕉久久久久久| 久久久久精品国产亚洲AV无码 | 久久精品国产精品青草| 久久se精品一区二区影院| 99久久国产亚洲综合精品| 久久99国产综合精品女同| 亚洲欧美一级久久精品| 国产精品青草久久久久婷婷| 久久综合视频网站| 国产精品禁18久久久夂久| 狠狠色丁香婷婷久久综合| 国产精品一区二区久久| 久久男人Av资源网站无码软件| 久久亚洲电影| 精品国产91久久久久久久a| 久久精品国产亚洲av水果派| 亚洲国产天堂久久综合| 国产精品成人久久久久三级午夜电影| 久久中文字幕人妻熟av女| 国产福利电影一区二区三区,免费久久久久久久精 | 精品永久久福利一区二区| 亚洲午夜福利精品久久| 久久99精品九九九久久婷婷| 国产精品福利一区二区久久| 久久国产亚洲高清观看| 亚洲va久久久噜噜噜久久天堂| 一本色道久久88综合日韩精品| 久久国产综合精品五月天| 国产精品久久久久久久久久免费| 91久久婷婷国产综合精品青草| 国产精品无码久久久久久| 潮喷大喷水系列无码久久精品| 青草国产精品久久久久久| 国内精品九九久久精品| 伊人久久大香线蕉无码麻豆| 99精品国产99久久久久久97| 久久人人爽人爽人人爽av| 国产—久久香蕉国产线看观看| 欧美精品一本久久男人的天堂| 嫩草影院久久99|