diff options
Diffstat (limited to 'tools/fish.html')
-rw-r--r-- | tools/fish.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/fish.html b/tools/fish.html index a4d3695..0d3ad33 100644 --- a/tools/fish.html +++ b/tools/fish.html @@ -249,6 +249,10 @@ echo "ls output: "(ls) <pre><code class="language-sh"># 'noclobber', fail if 'log' already exists echo foo >? log </code></pre> +<h3 id="process-substitution"><a class="header" href="#process-substitution">Process substitution</a></h3> +<p>Redirect output of multiple processes. Same as <code><(..)</code> in bash.</p> +<pre><code class="language-sh">diff (sort a | psub) (sort b | psub) +</code></pre> <h2 id="control-flow"><a class="header" href="#control-flow">Control Flow</a></h2> <h3 id="if--else"><a class="header" href="#if--else"><code>if</code> / <code>else</code></a></h3> <pre><code class="language-sh">if grep foo bar |