You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2631,6 +2631,17 @@ A short way of using if/else. An example:
2631
2631
[[ $a = 1 ]] && b="yes, equal" || b="nope"
2632
2632
</b></details>
2633
2633
2634
+
<details>
2635
+
<summary>What does the following code do and when would you use it?
2636
+
2637
+
<code>diff <(ls /tmp) <(ls /var/tmp)</code>
2638
+
2639
+
</summary><br>
2640
+
It is called 'process substitution'. It provides a way to pass the output of a command to another command when using a pipe <code>|</code> is not possible. It can be used when a command does not support <code>STDIN</code> or you need the output of multiple commands.
0 commit comments