From 6818479742cdbec40986be9a6f78601452beb946 Mon Sep 17 00:00:00 2001 From: Spencer Owen Date: Wed, 23 Oct 2019 11:37:05 -0600 Subject: [PATCH] Add process subsititution --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 5c1e0d4..75beaad 100644 --- a/README.md +++ b/README.md @@ -2631,6 +2631,17 @@ A short way of using if/else. An example: [[ $a = 1 ]] && b="yes, equal" || b="nope" +
+What does the following code do and when would you use it? + +diff <(ls /tmp) <(ls /var/tmp) + +
+It is called 'process substitution'. It provides a way to pass the output of a command to another command when using a pipe | is not possible. It can be used when a command does not support STDIN or you need the output of multiple commands. +https://superuser.com/a/1060002/167769 +
+ + ## SQL