You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>NOTE: If <code>COMMAND</code> adjusts the buffering of its standard streams (<code>tee</code> does for e.g.) then that will override corresponding settings changed by <code>stdbuf</code>.
8225
8225
Also some filters (like <code>dd</code> and <code>cat</code> etc.) don't use streams for I/O, and are thus unaffected by <code>stdbuf</code> settings.</p>
<p>Copy standard input to each file, and also to standard output:</p>
8545
+
<p>Copy <code>stdin</code>to each file, and also to <code>stdout</code>:</p>
8546
8546
<pre><codeclass="language-shell">echo "example" | tee {{path/to/file}}
8547
8547
</code></pre>
8548
8548
<p>Append to the given files, do not overwrite:</p>
8549
8549
<pre><codeclass="language-shell">echo "example" | tee -a {{path/to/file}}
8550
8550
</code></pre>
8551
-
<p>Print standard input to the terminal, and also pipe it into another program for further processing:</p>
8551
+
<p>Print <code>stdin</code> to the terminal, and also pipe it into another program for further processing:</p>
8552
8552
<pre><codeclass="language-shell">echo "example" | tee {{/dev/tty}} | {{xargs printf "[%s]"}}
8553
8553
</code></pre>
8554
8554
<p>Create a directory called "example", count the number of characters in "example" and write "example" to the terminal:</p>
<p>NOTE: If <code>COMMAND</code> adjusts the buffering of its standard streams (<code>tee</code> does for e.g.) then that will override corresponding settings changed by <code>stdbuf</code>.
231
231
Also some filters (like <code>dd</code> and <code>cat</code> etc.) don't use streams for I/O, and are thus unaffected by <code>stdbuf</code> settings.</p>
<p>Copy standard input to each file, and also to standard output:</p>
230
+
<p>Copy <code>stdin</code>to each file, and also to <code>stdout</code>:</p>
231
231
<pre><codeclass="language-shell">echo "example" | tee {{path/to/file}}
232
232
</code></pre>
233
233
<p>Append to the given files, do not overwrite:</p>
234
234
<pre><codeclass="language-shell">echo "example" | tee -a {{path/to/file}}
235
235
</code></pre>
236
-
<p>Print standard input to the terminal, and also pipe it into another program for further processing:</p>
236
+
<p>Print <code>stdin</code> to the terminal, and also pipe it into another program for further processing:</p>
237
237
<pre><codeclass="language-shell">echo "example" | tee {{/dev/tty}} | {{xargs printf "[%s]"}}
238
238
</code></pre>
239
239
<p>Create a directory called "example", count the number of characters in "example" and write "example" to the terminal:</p>
0 commit comments