blob: c9103c24970ba60140172bc94270029bba527725 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
---
tags:
- bash
- howto
---
[[Bash]] [[Parameter subsitution]] [[Null substitution]]
Process substitution connects the output of a command to a file. This enables another command to accept the output of multiple commands as files if it expects files.
An example of this is `diff`, which outputs the difference between two files:
```bash
diff <(ls dirA) <(ls dirB)
```
> Important! Don't but the <() inside quotes.. it will report: cannot find file
|