X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.4 required=5.0	tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
Message-ID: <4F742A9E.3080506@bonhard.uklinux.net>
Date: Thu, 29 Mar 2012 10:25:50 +0100
From: Fergus <fergus@bonhard.uklinux.net>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20120216 Firefox/10.0.2 SeaMonkey/2.7.2
MIME-Version: 1.0
To: Cygwin ML <cygwin@cygwin.com>
CC: Fergus <fergus@bonhard.uklinux.net>
Subject: Compare two directories, architecture only
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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

