How can you diff two pipelines in Bash?
A one-line with 2 tmp files (not what you want) would be: foo | bar > file1.txt && baz | quux > file2.txt && diff file1.txt file2.txt With bash, you might try though: diff <(foo | bar) <(baz | quux) foo | bar | diff – <(baz | quux) # or only use process substitution … Read more