cheatsheets/sh-pipes.md

18 lines
294 B
Markdown

---
title: "Shell: named pipes"
category: CLI
layout: 2017/sheet
---
### Named pipes
```sh
diff <(ls ./old) <(ls ./new)
```
This creates a virtual file with the contents of the output of `ls ./old`.
### References
* [Named pipe](https://en.wikipedia.org/wiki/Named_pipe) _(wikipedia.org)_