• <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++博客 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

            sort 指定排序域的兩種方法

            Posted on 2010-05-12 14:12 Prayer 閱讀(660) 評論(0)  編輯 收藏 引用 所屬分類: 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无码久久精品色欲| 综合久久国产九一剧情麻豆 | 久久久久亚洲精品天堂| 久久久久久久综合日本| 国产一级持黄大片99久久| 偷偷做久久久久网站| 91秦先生久久久久久久| 人人狠狠综合久久88成人| 亚洲v国产v天堂a无码久久| 思思久久99热只有频精品66| 国产亚洲色婷婷久久99精品| 欧美亚洲国产精品久久久久| 久久综合久久综合久久综合| 久久久一本精品99久久精品66| 久久久久中文字幕| 精品综合久久久久久98| 久久93精品国产91久久综合| 久久婷婷综合中文字幕| 久久丫忘忧草产品| 国产福利电影一区二区三区久久老子无码午夜伦不 | 国产精品一久久香蕉产线看| 四虎影视久久久免费观看| 亚洲欧美日韩久久精品| 久久久久香蕉视频| 国产精品久久久久天天影视| 久久久亚洲欧洲日产国码是AV| 国内精品久久久久久不卡影院| 婷婷综合久久中文字幕蜜桃三电影| 久久97久久97精品免视看秋霞| 国产精品美女久久久久| 色综合久久综合中文综合网| 色青青草原桃花久久综合| 国产女人aaa级久久久级| 精品综合久久久久久97超人| 少妇人妻88久久中文字幕| 久久精品国产日本波多野结衣| 伊人久久无码精品中文字幕| 欧美成a人片免费看久久|