At 2007-04-02T16:15:46+1200, Phill Coxon wrote:
> I'm comparing two directories of php source files and trying to determine
> how many changes have been made.

You should look into using version control, then this would be much easier.

> What I want is to get is the filenames of the files that have changed, the
> number of lines that have been changed in each file and for extra bonus
> points, the differnce in size of the file in bytes.

Use diffstat:

~/src/openssh% diff -ur 4.3p1 4.3p2 | diffstat
 ChangeLog                    |   35 ++++++++++++
 README                       |    4 -
 config.h.in                  |    8 --
 configure                    |  121 +++++++++++++++++++++++++++++++++----------
 configure.ac                 |   23 +++++---
...
 version.h                    |    2
 24 files changed, 166 insertions(+), 64 deletions(-)

Cheers,
-mjg
-- 
Matthew Gregan                     |/
                                  /|                    [EMAIL PROTECTED]

Reply via email to