mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-12-17 16:34:32 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -5,14 +5,14 @@
|
||||
<p>!</p>
|
||||
<p>存在缓存机制,每1024个字节将输出一次。若从管道接收输入数据,应该是缓冲区满,才将数据转存到指定的文件中。若文件内容不到1024个字节,则接收完从标准输入设备读入的数据后,将刷新一次缓冲区,并转存数据到指定文件。</p>
|
||||
<h3 id="语法">语法</h3>
|
||||
<pre><code>tee(选项)(参数)</code></pre>
|
||||
<pre><code class="language-bash">tee(选项)(参数)</code></pre>
|
||||
<h3 id="选项">选项</h3>
|
||||
<pre><code>-a:向文件中重定向时使用追加模式;
|
||||
<pre><code class="language-bash">-a:向文件中重定向时使用追加模式;
|
||||
-i:忽略中断(interrupt)信号。</code></pre>
|
||||
<h3 id="参数">参数</h3>
|
||||
<p>文件:指定输出重定向的文件。</p>
|
||||
<p>在终端打印stdout同时重定向到文件中:</p>
|
||||
<pre><code>ls | tee out.txt
|
||||
<pre><code class="language-bash">ls | tee out.txt
|
||||
1.sh
|
||||
1.txt
|
||||
2.txt
|
||||
@@ -24,7 +24,7 @@ string2
|
||||
www.pdf
|
||||
WWW.pdf
|
||||
WWW.pef</code></pre>
|
||||
<pre><code>[root@localhost text]# ls | tee out.txt | cat -n
|
||||
<pre><code class="language-bash">[root@localhost text]# ls | tee out.txt | cat -n
|
||||
1 1.sh
|
||||
2 1.txt
|
||||
3 2.txt
|
||||
|
||||
Reference in New Issue
Block a user