summaryrefslogtreecommitdiff
path: root/gemfeed/2021-11-29-bash-golf-part-1.md
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2022-01-22 16:29:11 +0000
committerPaul Buetow <paul@buetow.org>2022-01-22 16:29:11 +0000
commitf6d87bb8ca599d0216a0d301807e659ace2a5250 (patch)
tree7f51f4d1319bd99781e93697a86b3c95abe6694c /gemfeed/2021-11-29-bash-golf-part-1.md
parent6fe9c51b5b3bff4db4ebd6b315c4d89ef8c058cb (diff)
Publishing new version
Diffstat (limited to 'gemfeed/2021-11-29-bash-golf-part-1.md')
-rw-r--r--gemfeed/2021-11-29-bash-golf-part-1.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/gemfeed/2021-11-29-bash-golf-part-1.md b/gemfeed/2021-11-29-bash-golf-part-1.md
index d30a49a5..1bdc4452 100644
--- a/gemfeed/2021-11-29-bash-golf-part-1.md
+++ b/gemfeed/2021-11-29-bash-golf-part-1.md
@@ -280,10 +280,10 @@ Let's walk through all three examples from the above snippet:
* The second pipes "Hello world" via stdout to stdin of the "cat" command. As cat's argument is "-" it reads its data from stdin and not from a regular file named "-". So "-" has a special meaning for cat.
* The third and fourth examples are interesting as we don't use a pipe as of "|" but a so-called HERE-document and a HERE-string. But the end results are the same.
-The "tar" command understands "-" too. The following example tars up some local directory and sends the data to stdout (this is what "-f -" commands it to do). stdout then is piped via an SSH session to a remote tar process (running on snonux.de) and reads the data from stdin and extracts all the data coming from stdin (as we told tar with "-f -") on the remote machine:
+The "tar" command understands "-" too. The following example tars up some local directory and sends the data to stdout (this is what "-f -" commands it to do). stdout then is piped via an SSH session to a remote tar process (running on buetow.org) and reads the data from stdin and extracts all the data coming from stdin (as we told tar with "-f -") on the remote machine:
```
-❯ tar -czf - /some/dir | ssh hercules@snonux.de tar -xzvf -
+❯ tar -czf - /some/dir | ssh hercules@buetow.org tar -xzvf -
```
This is yet another example of using "-", but this time using the "file" command:
@@ -461,6 +461,6 @@ In the Bash you will have to fall back to an external command like "bc" (the arb
.10
```
-See you later for the next post of this series. E-Mail me your comments to snonux@snonux.de!
+See you later for the next post of this series. E-Mail me your comments to paul at buetow dot org!
[Go back to the main site](../)