On Tue, Feb 26, 2008 at 01:42:15PM -0800, SJS wrote:
> begin  quoting Lan Barnes as of Tue, Feb 26, 2008 at 01:35:36PM -0800:
> > I have two file trees (source code). I want to know the differences
> > in file names in those trees. I don't care if the files themselves
> > differ internally (I'm searching for new and deleted files between
> > the two trees).
> 
> Or maybe
> 
> (cd 1 ; find . -type f ; cd ../2 ; find -type f) | sort | uniq -c \
>         | grep '^ *1 ' | awk '{print $2}'

Given GNU diff:

    diff -q dir1/ dir2/ | grep '^Only in'

Attachment: pgpwz0IO4rp1j.pgp
Description: PGP signature

-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to