From 88bc7f1209668aa64b2f110121f6f4a2506b9d0c Mon Sep 17 00:00:00 2001 From: johannst Date: Thu, 7 Jul 2022 20:23:13 +0000 Subject: deploy: 8018375d79d74f2911c335337722a719cf87c72e --- tools/bash.html | 7 ++++++- tools/dot.html | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'tools') 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 -

Wit extglob shell option enabled it is possible to have more powerful +

With extglob shell option enabled it is possible to have more powerful patterns. In the following pattern-list is one ore more patterns separated by | char.

?(pattern-list)   matches zero or one occurrence of the given patterns
@@ -229,6 +229,11 @@ command &>file
 # stderr to stdout & stdout to file
 command 2>&1 >file
 
+
+

The article Bash One-Liners Explained, Part III: All about +redirections +contains some nice visualization to explain bash redirections.

+

Explanation

j>&i
 
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 @@

dot(1)

-

Example dot file to copy & paste from.

+

Online playground

+

Example dot file to copy & paste from.

Can be rendered to svg with the following command.

dot -T svg -o g.svg g.dot
 
-- cgit v1.2.3