aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/bash.html7
-rw-r--r--tools/dot.html3
2 files changed, 8 insertions, 2 deletions
diff --git a/tools/bash.html b/tools/bash.html
index 72598e3..b8d9c92 100644
--- a/tools/bash.html
+++ b/tools/bash.html
@@ -204,7 +204,7 @@ ${foo/pattern/string} # replace pattern with string when expanding foo
alnum,alpha,ascii,blank,cntrl,digit,graph,lower,
print,punct,space,upper,word,xdigit
</code></pre>
-<p>Wit <code>extglob</code> shell option enabled it is possible to have more powerful
+<p>With <code>extglob</code> shell option enabled it is possible to have more powerful
patterns. In the following <code>pattern-list</code> is one ore more patterns separated
by <code>|</code> char.</p>
<pre><code class="language-bash">?(pattern-list) matches zero or one occurrence of the given patterns
@@ -229,6 +229,11 @@ command &amp;&gt;file
# stderr to stdout &amp; stdout to file
command 2&gt;&amp;1 &gt;file
</code></pre>
+<blockquote>
+<p>The article <a href="https://catonmat.net/bash-one-liners-explained-part-three">Bash One-Liners Explained, Part III: All about
+redirections</a>
+contains some nice visualization to explain bash redirections.</p>
+</blockquote>
<h3><a class="header" href="#explanation" id="explanation">Explanation</a></h3>
<pre><code class="language-bash">j&gt;&amp;i
</code></pre>
diff --git a/tools/dot.html b/tools/dot.html
index 05f652d..b3164d9 100644
--- a/tools/dot.html
+++ b/tools/dot.html
@@ -153,7 +153,8 @@
<div id="content" class="content">
<main>
<h1><a class="header" href="#dot1" id="dot1">dot(1)</a></h1>
-<p>Example <code>dot</code> file to copy &amp; paste from.</p>
+<p><a href="https://edotor.net/">Online playground</a></p>
+<h2><a class="header" href="#example-dot-file-to-copy--paste-from" id="example-dot-file-to-copy--paste-from">Example <code>dot</code> file to copy &amp; paste from.</a></h2>
<p>Can be rendered to <code>svg</code> with the following command.</p>
<pre><code class="language-bash">dot -T svg -o g.svg g.dot
</code></pre>