delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/03/30/13:05:39

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=1.8 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,KAM_THEBAT,KHOP_THREADED
X-Spam-Check-By: sourceware.org
Date: Fri, 30 Mar 2012 20:55:54 +0400
From: Andrey Repin <anrdaemon AT freemail DOT ru>
Reply-To: Andrey Repin <cygwin AT cygwin DOT com>
Message-ID: <6587024.20120330205554@mtu-net.ru>
To: Fergus <fergus AT bonhard DOT uklinux DOT net>, cygwin AT cygwin DOT com
Subject: Re: Compare two directories, architecture only
In-Reply-To: <4F742A9E.3080506@bonhard.uklinux.net>
References: <4F742A9E DOT 3080506 AT bonhard DOT uklinux DOT net>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Greetings, Fergus!

> Is there an easy way to compare two directories for content (names only 
> of subdirectories and files, not their identical content).

What you want it for? If you only need it for your own convenience, you can
use compare tool included in file managers like Wincommander or Far Manager.

> (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.)


--
WBR,
Andrey Repin (anrdaemon AT freemail DOT ru) 30.03.2012, <20:54>

Sorry for my terrible english...


--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019