diff options
author | johannst <johannst@users.noreply.github.com> | 2024-01-25 07:33:01 +0000 |
---|---|---|
committer | johannst <johannst@users.noreply.github.com> | 2024-01-25 07:33:01 +0000 |
commit | 920d16436e0d5f37e9f6d31236ee87b716f3c82f (patch) | |
tree | 39ca6b8ac6733827debe6a8131032892763848bc /tools/bash.html | |
parent | 6dbf014773f5f8ac0b0e291392dfde518de94daf (diff) | |
download | notes-920d16436e0d5f37e9f6d31236ee87b716f3c82f.tar.gz notes-920d16436e0d5f37e9f6d31236ee87b716f3c82f.zip |
deploy: f7fb4c7303a5776ddb421d182a92f679a8b0f868
Diffstat (limited to 'tools/bash.html')
-rw-r--r-- | tools/bash.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/bash.html b/tools/bash.html index c4588f5..67caa6b 100644 --- a/tools/bash.html +++ b/tools/bash.html @@ -269,6 +269,11 @@ contains some nice visualization to explain bash redirections.</p> <li>duplicate <code>fd 1</code> to <code>fd 2</code>, effectively redirecting <code>stderr</code> to <code>stdout</code></li> <li>redirect <code>stdout</code> to <code>file</code></li> </ol> +<h2 id="process-substitution-ref"><a class="header" href="#process-substitution-ref">Process substitution (<a href="https://tldp.org/LDP/abs/html/process-sub.html">ref</a>)</a></h2> +<p>Process substitution allows to redirect the stdout of multiple processes at +once.</p> +<pre><code class="language-bash">vim -d <(grep foo bar) <(grep foo moose) +</code></pre> <h2 id="argument-parsing-with-getopts"><a class="header" href="#argument-parsing-with-getopts">Argument parsing with <code>getopts</code></a></h2> <p>The <code>getopts</code> builtin uses following global variables:</p> <ul> |