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 'cat /pathto/file.txt' | diff - myfile.txt

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.