Page MenuHomeDevCentral

arc-paste-diff.sh
No OneTemporary

arc-paste-diff.sh

#!/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

File Metadata

Mime Type
text/x-shellscript
Expires
Sun, Nov 16, 13:28 (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3170432
Default Alt Text
arc-paste-diff.sh (292 B)

Event Timeline