<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # sed 命令 [TOC] >[info] sed是一種流編輯器,它是文本處理中非常中的工具,能夠完美的配合正則表達式使用,功能不同凡響。 ## 命令格式 ## 選項 >[success] **-n**或**--quiet**或**--silent** 僅顯示script處理后的結果 **-i** 改變文件內容 **-r** # 實例 ## 替換 ~~~ [root@localhost test]# sed -i 's#boy#girl#g' test.txt # s 表示查找并替換,用一個字符串替換成另一個 # g(global) 與s聯合使用時,表示對當前行全局匹配替換 # '#' 表示分隔符 可以用'/=@'等替換 ~~~ ## 獲取n~m之間的行 ~~~ # 獲取文件text.txt中20~30行 [root@localhost test]# sed -n '20,30p' test.txt 20 21 22 23 24 25 26 27 28 29 30 # 拓展一種低效的方法(也可以達到相同的效果) [root@localhost test]# head -30 test.txt |tail -11 ~~~ ## 獲取某一行 ~~~ [root@localhost test]# sed -n '30p' test.txt 30 ~~~ ## 操作指定行增加一個注釋 `sed '492,523s/^/#/' csft.conf`
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看