summaryrefslogtreecommitdiff
path: root/gemfeed/2021-11-29-bash-golf-part-1.gmi
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2022-01-22 16:28:17 +0000
committerPaul Buetow <paul@buetow.org>2022-01-22 16:28:17 +0000
commit69681308c7f796c2b091b12c273db6e0c7d139df (patch)
tree4649fc8a14e388db72a843b16566590ad461ef47 /gemfeed/2021-11-29-bash-golf-part-1.gmi
parentc579e5d4586ae929c763a225bac3d45cc7473e3d (diff)
fix content
Diffstat (limited to 'gemfeed/2021-11-29-bash-golf-part-1.gmi')
-rw-r--r--gemfeed/2021-11-29-bash-golf-part-1.gmi4
1 files changed, 2 insertions, 2 deletions
diff --git a/gemfeed/2021-11-29-bash-golf-part-1.gmi b/gemfeed/2021-11-29-bash-golf-part-1.gmi
index e3e5243a..62066ecf 100644
--- a/gemfeed/2021-11-29-bash-golf-part-1.gmi
+++ b/gemfeed/2021-11-29-bash-golf-part-1.gmi
@@ -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: