# .bashrc-work patch-suggested-change() { [ $# -ne 1 ] && int-usage "rej-file" && return local origfile=${1%.rej} { echo "diff ${origfile}.patch ${origfile}.patch.orig"; colordiff -du \ <(tail -n+3 "${origfile}.rej") \ <(diff -du \ "${origfile}" \ <(wiggle --merge "${origfile}" "${origfile}.rej") \ | tail -n+3) } | sed '2,4d;' | subdiff #} | subdiff | tail -n+5 } patch-suggested-changes() { for f in $(find -name '*.rej'); do patch-suggested-change "${f}" done }