Page MenuHomeDevCentral
Paste P156

arc-paste-diff
ActivePublic

Authored by dereckson on Jan 21 2016, 20:14.
Referenced Files
F17296: arc-paste-diff
Jan 21 2016, 20:14
Subscribers
None
#!/usr/bin/env bash
COLORDIFF=`which colordiff`
if [ $# -ne 2 ]
then
echo "Usage: `basename $0` <paste 1> <paste 2>"
exit 1
fi
if [ "$COLORDIFF" = "" ]; then
diff -u <(arc paste $1) <(arc paste $2)
else
diff -u <(arc paste $1) <(arc paste $2) | colordiff
fi

Event Timeline

dereckson changed the title of this paste from untitled to arc-paste-diff.
dereckson updated the paste's language from autodetect to bash.Jan 21 2016, 20:15
dereckson added a project: DevCentral.
dereckson mentioned this in Unknown Object (Ponder Answer).Jan 21 2016, 20:29