Skip to content

Instantly share code, notes, and snippets.

@mujtaba-h
Forked from rsanchez/gist:4494530
Last active July 11, 2020 09:54
Show Gist options
  • Save mujtaba-h/6051ebc30e47f0ce174f7bff29d76a8b to your computer and use it in GitHub Desktop.
Save mujtaba-h/6051ebc30e47f0ce174f7bff29d76a8b to your computer and use it in GitHub Desktop.
Diff two urls using Ubuntu Meld (diff graphic tool)
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
meld $file1 $file2
rm $file1 $file2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment