Skip to content

Instantly share code, notes, and snippets.

@koudelka
Created May 21, 2014 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koudelka/383bb1362432ed320c9b to your computer and use it in GitHub Desktop.
Save koudelka/383bb1362432ed320c9b to your computer and use it in GitHub Desktop.
Compare two files on remote hosts.
rdiff() { diff -u <(ssh $1 "cat $3") <(ssh $2 "cat $3") }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment