This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.
Subject: Re: Off-topic: diff? From: Jan Carlson <janc@iname.com> Date: Wed, 26 May 1999 17:25:32 -0400 "Michael J. Yanowitz" wrote: > > I know this is a little off topic, but is there an easy > way to diff only all of the *.c, *.h, and Makefile files in two > directories? DIR1=<absolute path1> DIR2=<absolute path2> cd $DIR1 find -name \*.[ch]| while read xxx do diff -c $f $DIR2/$f done > /tmp/diff.out 2>&1 Or, diff -r $DIR1 $DIR2 and just look at the parts you want. It won't be confused by binary files. ===