summaryrefslogtreecommitdiff
path: root/Bash process substition (tmp file).md
diff options
context:
space:
mode:
authorJasper Ras <jaspert.ras@gmail.com>2025-04-26 13:14:25 +0200
committerJasper Ras <jaspert.ras@gmail.com>2025-04-26 13:14:25 +0200
commit89688082f4c85cbfcf045e1f85dac5c69285c23e (patch)
tree709be9a6f0c9a802e0487e92e81f4281f4ec345b /Bash process substition (tmp file).md
parentf0a7d563a385663513f24aecad92219ecfc83bd8 (diff)
parent468e33e7926897756acfe0d483633fb36949ebc5 (diff)
vault backup: 2025-04-26 13:14:25
Diffstat (limited to 'Bash process substition (tmp file).md')
-rw-r--r--Bash process substition (tmp file).md13
1 files changed, 13 insertions, 0 deletions
diff --git a/Bash process substition (tmp file).md b/Bash process substition (tmp file).md
new file mode 100644
index 0000000..3540f70
--- /dev/null
+++ b/Bash process substition (tmp file).md
@@ -0,0 +1,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 \ No newline at end of file