Show Differences Between A Local File And A Remote Copy


/ Published in: Bash
Save to your folder(s)

Requires SSH access to remote server.


Copy this code and paste it in your HTML
  1. $ ssh username@www.remoteserver.com 'cat /pathto/file.txt' | diff - myfile.txt

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.