Lan Barnes wrote:
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).

I'm in Linux and have available all the usual utilities as well as p4.
Also anything I can download.

Closest I've come on my own so far is

  dir -Rx1 .

Done in both trees, and diffed. But the output is complex.

diff -cr dir1 dir2

will give you the diffs, but also outputs lines like
"only in dir1: file.c"

So:
diff -cr dir1 dir2 | grep -i only


Alternatvely:

rsync -n dir1/ dir2/
rsync --dry-run dir1/ dir2/

might also do something useful.

-a


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

Reply via email to