From 57499b29f9f307eeec221dbe8077599050121595 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Thu, 7 Jul 2022 22:22:11 +0200 Subject: [bash]: add link to io redirections --- src/tools/bash.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/tools') diff --git a/src/tools/bash.md b/src/tools/bash.md index 2ce0523..9150963 100644 --- a/src/tools/bash.md +++ b/src/tools/bash.md @@ -59,7 +59,7 @@ ${foo/pattern/string} # replace pattern with string when expanding foo 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. @@ -86,6 +86,9 @@ command &>file # stderr to stdout & stdout to file command 2>&1 >file ``` +> The article [Bash One-Liners Explained, Part III: All about +> redirections](https://catonmat.net/bash-one-liners-explained-part-three) +> contains some nice visualization to explain bash redirections. ### Explanation -- cgit v1.2.3