2019-04-21 11:50:48 +08:00

17 lines
1.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<h1 id="fmt">fmt</h1>
<p>读取文件后优化处理并输出</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>fmt命令</strong> 读取文件的内容,根据选项的设置对文件格式进行简单的优化处理,并将结果送到标准输出设备。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">fmt(选项)(参数)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-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;:设置每列的最大字符数。</code></pre>
<h3 id="参数">参数</h3>
<p>指定要优化格式的文件。</p>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->