Skip to content

Commit 04778e9

Browse files
committed
Describe piping better
1 parent ac3541f commit 04778e9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: content/posts/2024-07-30-fish-and-pipestatus.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,10 @@ prior value.
7171
## Piping commands
7272

7373
When shell scripting, it is common to pipe commands. What we mean by piping commands is
74-
running a command and piping its output as the input to another command, and so on.
75-
Let's take a quick example in Fish where we print the URL to this blog post and pipe
76-
that to `string match` to pull out the slug name:
74+
running a command and sending its output as the input to another command, and so on.
75+
This is done with the pipe `|` character, hence the term. Let's take a quick example in
76+
Fish where we print the URL to this blog post and pipe that to `string match` to pull
77+
out the slug name:
7778

7879
```fish
7980
> echo "https://mattmc3.github.io/posts/2024/07/fish-and-pipestatus/" |

0 commit comments

Comments
 (0)