This'll need a bit of cleaning up, but...

cd /projectA
for file in `find . -type f`
do
        echo $file
        diff $file /projectB/$file
        echo "=========================="
done > logfile

should do for a start. I'm sure there's a python 1 liner out there (:

Steve

On Tue, 24 Oct 2006 15:45:20 +1300
Phill Coxon <[EMAIL PROTECTED]> wrote:

> I have two sets of source code for a small project - the original
> version and a version with some files updated. Each are in a separate
> directory - projectA/ & projectB/
> 
> Can anyone suggest how I can recursively step through each file in the
> projectA directory and (subdirectories) and compare it to the same file
> in projectB to identify files that have changed?
> 
> Effectively I'm looking for the list of source files that have been
> modified in the project. 
> 
> Either a bash script or recommendations to any tools that do it would be
> greatly appreciated. 
> 
> Thanks!
> 

Reply via email to