Skip to content

Instantly share code, notes, and snippets.

@jhrcz
Created June 20, 2013 12:55
Show Gist options
  • Save jhrcz/5822432 to your computer and use it in GitHub Desktop.
Save jhrcz/5822432 to your computer and use it in GitHub Desktop.
lame comparing of remote hosts (files/dirs)
vimdiff <( echo "##### $1 #####" ; ssh root@$1 ls -l $3 | sort -k9 ) <( echo "##### $2 ##### ; ssh root@$2 ls -l $3 | sort -k9 )
vimdiff <( echo "##### $1 #####" ; ssh root@$1 cat $3 ) <( echo "##### $2 #####" ; ssh root@$2 cat $3 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment