Skip to content

Instantly share code, notes, and snippets.

@rsanchez
Created January 9, 2013 16:27
Show Gist options
  • Save rsanchez/4494530 to your computer and use it in GitHub Desktop.
Save rsanchez/4494530 to your computer and use it in GitHub Desktop.
diff two urls using FileMerge
curldiff( ) {
template="/tmp/curldiff-XXXXXXXX"
file1=$(mktemp $template)
file2=$(mktemp $template)
echo "Loading $1"
curl -# -L -o $file1 $1
echo "Loading $2"
curl -# -L -o $file2 $2
opendiff $file1 $file2
rm $file1 $file2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment