From owner-freebsd-questions Sun Jun 9 7:48:58 2002 Delivered-To: freebsd-questions@freebsd.org Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by hub.freebsd.org (Postfix) with ESMTP id E9DE137B406 for ; Sun, 9 Jun 2002 07:48:54 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by cactus.fi.uba.ar (8.11.6/8.11.6) with ESMTP id g59Ekex10939; Sun, 9 Jun 2002 11:46:41 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Date: Sun, 9 Jun 2002 11:46:40 -0300 (ART) From: Fernando Gleiser X-X-Sender: To: "Jack L. Stone" Cc: Subject: Re: Running Diff of Directories In-Reply-To: <3.0.5.32.20020609092149.01044510@mail.sage-one.net> Message-ID: <20020609114333.N7785-100000@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 9 Jun 2002, Jack L. Stone wrote: > I'm trying to run an analysis of two large directories, on two different > computers and only want to know what file names do not exist in one versus > the other and want to ignore file size or dates. I have run a directory > listing on each one, "file1" and "file2". > > I assume this is a job for "diff", but don't see "ignore option" for dates > and file size, except perhaps a regex, which I don't grasp. How would I > determine only the filenames that exist in file1 but not in file2....??? If you don't care about size, dates, permissions, and the like run a 'ls -R' which won't show them. Then you can do a 'diff -u' to see what files are in one dir and not in the other. Hope this helps. Fer > > Best regards, > Jack L. Stone, > Administrator > > SageOne Net > http://www.sage-one.net > jackstone@sage-one.net > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message