diff --git a/zsh.md b/zsh.md index d755f47bb..feb2a105c 100644 --- a/zsh.md +++ b/zsh.md @@ -27,6 +27,14 @@ layout: 2017/sheet chsh -s `which zsh` ``` +### Process Substitution + +| Expression | Example | Description +| --- | --- | --- +| `<(COMMAND)` | `grep "needle" <(curl "https://haystack.io")` | Replace argument with _named pipe/FIFO_ (read-only) with command output +| `=(COMMAND)` | `vim =(curl "https://haystack.io")` | Replace argument with _file_ (writable) containing command output +{: .-headers} + ### Also see - [Bash cheatsheet](./bash)