From owner-freebsd-questions Sun Jun 9 9:42:24 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id A1CF737B411 for ; Sun, 9 Jun 2002 09:42:05 -0700 (PDT) Received: from hades.hell.gr (patr530-b160.otenet.gr [212.205.244.168]) by mailsrv.otenet.gr (8.12.3/8.12.3) with ESMTP id g59Gg2ZN008361; Sun, 9 Jun 2002 19:42:03 +0300 (EEST) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.3/8.12.3) with ESMTP id g59Gg1vi003208; Sun, 9 Jun 2002 19:42:01 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from charon@localhost) by hades.hell.gr (8.12.3/8.12.3/Submit) id g59GfwNg003207; Sun, 9 Jun 2002 19:41:58 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 9 Jun 2002 19:41:57 +0300 From: Giorgos Keramidas To: "Jack L. Stone" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Running Diff of Directories Message-ID: <20020609164157.GA3128@hades.hell.gr> References: <3.0.5.32.20020609092149.01044510@mail.sage-one.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3.0.5.32.20020609092149.01044510@mail.sage-one.net> 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 2002-06-09 09:21 -0500, 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....??? An easy way to do this is to compare the listing of each directory: % find /path/one -print > foo % find /path/two -print > bar % diff -u foo bar - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message