Diff the output of two processes
This is a small but useful bash trick to apply ‘diff’ to the output of two separate commands:
1
2
3
4
5
laptop-ben:~ benjamin$ diff <(echo a) <(echo b)
1c1
< a
---
> b
This post is licensed under CC BY 4.0 by the author.