summaryrefslogtreecommitdiff
path: root/Bash process substition (tmp file).md
blob: 3540f702751d38493ec484ffbefdc08472485c47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
---
tags:
  - bash
  - howto
---
Process substitution connects the output of a command to a file. This enables a command to accept the output of multiple commands. 
Useful with diff for example:

```bash
diff <(ls dirA) <(ls dirB)
```

> Important! Don't but the <() inside quotes.. it will report: cannot find file