cdiff() { diff -u "$@" \ | sed 's/^\(@@ .* @@\)$/'$'\e[36m''\1'$'\e[m''/g' \ | sed 's/^\(-.*\)$/'$'\e[31m''\1'$'\e[m''/g' \ | sed 's/^\(+.*\)$/'$'\e[32m''\1'$'\e[m''/g' \ | less -c -R }
icdiff colors just the part of the line that changed: http://www.jefftk.com/icdiff-comparison-1234a1234.png