aboutsummaryrefslogtreecommitdiffhomepage
path: root/print.html
diff options
context:
space:
mode:
authorjohannst <johannst@users.noreply.github.com>2022-07-07 20:23:13 +0000
committerjohannst <johannst@users.noreply.github.com>2022-07-07 20:23:13 +0000
commit88bc7f1209668aa64b2f110121f6f4a2506b9d0c (patch)
tree3d66d70431a882799d5abc956448ed9fd4169b23 /print.html
parentda7708c904cc1bfa7bafc8a4bd5742cae0cecb03 (diff)
downloadnotes-88bc7f1209668aa64b2f110121f6f4a2506b9d0c.tar.gz
notes-88bc7f1209668aa64b2f110121f6f4a2506b9d0c.zip
deploy: 8018375d79d74f2911c335337722a719cf87c72e
Diffstat (limited to 'print.html')
-rw-r--r--print.html10
1 files changed, 8 insertions, 2 deletions
diff --git a/print.html b/print.html
index e951eaa..2190694 100644
--- a/print.html
+++ b/print.html
@@ -502,7 +502,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
@@ -527,6 +527,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>
@@ -2024,7 +2029,8 @@ package and sort by size.</p>
sort -h
</code></pre>
<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>