<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>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # Linux fmt命令 Linux fmt命令用于編排文本文件。 fmt指令會從指定的文件里讀取內容,將其依照指定格式重新編排后,輸出到標準輸出設備。若指定的文件名為"-",則fmt指令會從標準輸入設備讀取數據。 ### 語法 ``` fmt [-cstu][-p<列起始字符串>][-w<每列字符數>][--help][--version][文件...] ``` **參數說明**: * -c或--crown-margin 每段前兩列縮排。 * -p&lt;列起始字符串&gt;或-prefix=&lt;列起始字符串&gt; 僅合并含有指定字符串的列,通常運用在程序語言的注解方面。 * -s或--split-only 只拆開字數超出每列字符數的列,但不合并字數不足每列字符數的列。 * -t或--tagged-paragraph 每列前兩列縮排,但第1列和第2列的縮排格式不同。 * -u或--uniform-spacing 每個字符之間都以一個空格字符間隔,每個句子之間則兩個空格字符分隔。 * -w&lt;每列字符數&gt;或--width=&lt;每列字符數&gt;或-&lt;每列字符數&gt; 設置每列的最大字符數。 * --help 在線幫助。 * --version 顯示版本信息。 ### 實例 重排指定文件。如文件testfile共5 行文字,可以通過命令對該文件格式進行重排,其命令為: ``` fmt testfile ``` 輸出結果如下: ``` $ fmt testfile #重排testfile 文件 hello Linux! Linux is a free Unix-type operating system. This is a Linux testfile! Linux Linux ``` 將文件testfile重新排成85 個字符一行,并在標準輸出設備上輸出,其命令應該為: ``` fmt -w 85 testfile ``` 為了對比,先使用cat 命令查看文件內容: ``` $ cat testfile #查看testfile 文件的內容 hello Linux! Linux is a free Unix-type operating system. This is a Linux testfile! Linux Linux ``` 使用fmt命令重排之后,輸出結果如下: ``` $ fmt -w 85 testfile #指定重排寬度為85個字符 hello Linux! Linux is a free Unix-type operating system. This is a Linux testfile! Linux Linux ```
                  <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>

                              哎呀哎呀视频在线观看