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

            sed P D G

            Posted on 2010-01-19 23:24 Prayer 閱讀(332) 評論(0)  編輯 收藏 引用 所屬分類: Shell
            y/source-chars/dest-chars/
            (The / characters may be uniformly replaced by any other single character within any given y command.)

            Transliterate any characters in the pattern space which match any of the source-chars with the corresponding character in dest-chars.

            Instances of the / (or whatever other character is used in its stead), \, or newlines can appear in the source-chars or dest-chars lists, provide that each instance is escaped by a \. The source-chars and dest-chars lists must contain the same number of characters (after de-escaping).

            a\
            text
            As a GNU extension, this command accepts two addresses.

            Queue the lines of text which follow this command (each but the last ending with a \, which are removed from the output) to be output at the end of the current cycle, or when the next input line is read.

            Escape sequences in text are processed, so you should use \\ in text to print a single backslash.

            As a GNU extension, if between the a and the newline there is other than a whitespace-\ sequence, then the text of this line, starting at the first non-whitespace character after the a, is taken as the first line of the text block. (This enables a simplification in scripting a one-line add.) This extension also works with the i and c commands.

            i\
            text
            As a GNU extension, this command accepts two addresses.

            Immediately output the lines of text which follow this command (each but the last ending with a \, which are removed from the output).

            c\
            text
            Delete the lines matching the address or address-range, and output the lines of text which follow this command (each but the last ending with a \, which are removed from the output) in place of the last line (or in place of each line, if no addresses were specified). A new cycle is started after this command is done, since the pattern space will have been deleted.
            =
            As a GNU extension, this command accepts two addresses.

            Print out the current input line number (with a trailing newline).

            l n
            Print the pattern space in an unambiguous form: non-printable characters (and the \ character) are printed in C-style escaped form; long lines are split, with a trailing \ character to indicate the split; the end of each line is marked with a $.

            n specifies the desired line-wrap length; a length of 0 (zero) means to never wrap long lines. If omitted, the default as specified on the command line is used. The n parameter is a GNU sed extension.

            r filename
            As a GNU extension, this command accepts two addresses.

            Queue the contents of filename to be read and inserted into the output stream at the end of the current cycle, or when the next input line is read. Note that if filename cannot be read, it is treated as if it were an empty file, without any error indication.

            As a GNU sed extension, the special value /dev/stdin is supported for the file name, which reads the contents of the standard input.

            w filename
            Write the pattern space to filename. As a GNU sed extension, two special values of file-name are supported: /dev/stderr, which writes the result to the standard error, and /dev/stdout, which writes to the standard output.1

            The file will be created (or truncated) before the first input line is read; all w commands (including instances of w flag on successful s commands) which refer to the same filename are output without closing and reopening the file.

            D
            Delete text in the pattern space up to the first newline. If any text is left, restart cycle with the resultant pattern space (without reading a new line of input), otherwise start a normal new cycle.
            N
            Add a newline to the pattern space, then append the next line of input to the pattern space. If there is no more input then sed exits without processing any more commands.
            P
            Print out the portion of the pattern space up to the first newline.
            h
            Replace the contents of the hold space with the contents of the pattern space.
            H
            Append a newline to the contents of the hold space, and then append the contents of the pattern space to that of the hold space.
            g
            Replace the contents of the pattern space with the contents of the hold space.
            G
            Append a newline to the contents of the pattern space, and then append the contents of the hold space to that of the pattern space.
            x
            Exchange the contents of the hold and pattern spaces.
            狠狠人妻久久久久久综合蜜桃| 国产亚州精品女人久久久久久| 无码乱码观看精品久久| 欧美精品国产综合久久| 久久水蜜桃亚洲av无码精品麻豆| 久久成人精品视频| 四虎国产精品成人免费久久| 狠狠色婷婷久久综合频道日韩| 久久久久久久97| 久久天天躁狠狠躁夜夜2020老熟妇| 一日本道伊人久久综合影| 国产精品岛国久久久久| 亚洲精品美女久久久久99小说 | 99久久国产热无码精品免费久久久久| 看全色黄大色大片免费久久久| 亚洲αv久久久噜噜噜噜噜| 很黄很污的网站久久mimi色| 久久AV高潮AV无码AV| 狠狠综合久久综合中文88| 精品国产VA久久久久久久冰| 久久久精品国产免大香伊| 久久久久无码中| 激情久久久久久久久久| 久久精品亚洲中文字幕无码麻豆| 18禁黄久久久AAA片| 国产成人精品久久亚洲高清不卡 国产成人精品久久亚洲高清不卡 国产成人精品久久亚洲 | AV无码久久久久不卡蜜桃| 久久久久久久精品妇女99| 久久亚洲欧洲国产综合| 久久国产成人午夜aⅴ影院| 久久er国产精品免费观看2| 久久66热人妻偷产精品9| 久久精品国产亚洲αv忘忧草| 日韩影院久久| 色欲综合久久躁天天躁| 亚洲精品国产综合久久一线| 欧美午夜A∨大片久久| 波多野结衣久久精品| 久久人人爽人人爽人人片AV不| 亚洲精品美女久久久久99小说| 色偷偷91久久综合噜噜噜噜|