From 9bd8cdf2ecc2b60f873b393122b19985cbc4587c Mon Sep 17 00:00:00 2001
From: Jasper Ras <jras@hostnet.nl>
Date: Mon, 2 Jun 2025 12:15:47 +0200
Subject: vault backup: 2025-06-02 12:15:47

---
 Process substition (tmp file).md | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 Process substition (tmp file).md

(limited to 'Process substition (tmp file).md')

diff --git a/Process substition (tmp file).md b/Process substition (tmp file).md
new file mode 100644
index 0000000..c9103c2
--- /dev/null
+++ b/Process substition (tmp file).md	
@@ -0,0 +1,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
\ No newline at end of file
-- 
cgit v1.2.3