Diff Two Files on Different Servers

I recently had the need to diff two files, each on a different server. I was checking to make sure that both files ( server config files ) were in sync. I really didn’t want to eye-ball it, and copying the files to my local machine to run Kaleidoscope on them didn’t sound appealing, either. Vim to the rescue!

1
vimdiff  scp://<IP>//path/to/file1  scp://<IP>//path/to/file2

And in several seconds, I was presented with a side-by-side diff in my terminal. Easy-Peasy.

Hope this help!

/korishev

Comments