public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Compare two directories, architecture only
@ 2012-03-29  9:26 Fergus
  2012-03-29 11:34 ` marco atzeri
  2012-03-30 17:05 ` Andrey Repin
  0 siblings, 2 replies; 4+ messages in thread
From: Fergus @ 2012-03-29  9:26 UTC (permalink / raw)
  To: Cygwin ML; +Cc: Fergus

Is there an easy way to compare two directories for content (names only 
of subdirectories and files, not their identical content).
(1) "diff" compares the content of files: too strong a comparison;
(2) Could "find" both directories and then compare output, but this will 
list the entire content under any non-matching subdirectories, when all 
I need is the fact of the non-match.
(i.e. I need
diff -rq d1 d2 | sed ' /^Files /d'    OR    diff -rq d1 d2 | grep '^Only'
without the scrutiny of file content that diff provides.)
Thank you!
Fergus

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-30 18:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-29  9:26 Compare two directories, architecture only Fergus
2012-03-29 11:34 ` marco atzeri
2012-03-30 17:05 ` Andrey Repin
2012-03-30 18:48   ` Earnie Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).