#!/bin/sh for f in `find . -name '*.orig'`; do fmod=`echo $f | sed -e 's,\.orig$,,'` if [ -f $fmod ]; then diff -uN $f $fmod fi done