Wednesday, March 30, 2011

How do I diff two files on different machines (using bash)?

$ diff <(ssh -n george cat /etc/passwd) <(ssh -n kramer cat /etc/passwd)

This is just the Bash Process Substitution trick.