sh-pipes: update

This commit is contained in:
Rico Sta. Cruz 2017-10-19 10:56:18 +08:00
parent 85ae9d769e
commit e164739900
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 7 additions and 2 deletions

View File

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