Diff the output of two processes
This is a small but useful bash trick to apply ‘diff’ to the output of two separate commands:
laptop-ben:~ benjamin$ diff <(echo a) <(echo b)
1c1
< a
---
> b
This is a small but useful bash trick to apply ‘diff’ to the output of two separate commands:
laptop-ben:~ benjamin$ diff <(echo a) <(echo b)
1c1
< a
---
> b