mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-12-17 16:34:32 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<h2 id="补充说明">补充说明</h2>
|
||||
<p><strong>printf命令</strong> 格式化并输出结果到标准输出。</p>
|
||||
<h3 id="语法">语法</h3>
|
||||
<pre><code>printf(选项)(参数)
|
||||
<pre><code class="language-bash">printf(选项)(参数)
|
||||
--help:在线帮助;
|
||||
--version:显示版本信息。</code></pre>
|
||||
<h3 id="参数">参数</h3>
|
||||
@@ -41,9 +41,9 @@
|
||||
<li>\0ddd 表示1到3位的八进制值字符</li>
|
||||
</ul>
|
||||
<h3 id="实例">实例</h3>
|
||||
<pre><code>printf "hello world"
|
||||
<pre><code class="language-bash">printf "hello world"
|
||||
</code></pre>
|
||||
<pre><code>#!/bin/bash
|
||||
<pre><code class="language-bash">#!/bin/bash
|
||||
|
||||
printf "%-5s %-10s %-4s\n" NO Name Mark
|
||||
printf "%-5s %-10s %-4.2f\n" 01 Tom 90.3456
|
||||
|
||||
Reference in New Issue
Block a user