From c9a730e5b363a10639309c81dab838232ee434b6 Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Fri, 25 Apr 2025 16:15:25 +0200 Subject: vault backup: 2025-04-25 16:15:25 --- Bash process substition (tmp file).md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Bash process substition (tmp file).md (limited to 'Bash process substition (tmp file).md') 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 -- cgit v1.2.3