From owner-freebsd-questions Sun Jun 9 7:53:21 2002 Delivered-To: freebsd-questions@freebsd.org Received: from ip68-14-62-49.no.no.cox.net (ip68-14-62-49.no.no.cox.net [68.14.62.49]) by hub.freebsd.org (Postfix) with ESMTP id B914237B404 for ; Sun, 9 Jun 2002 07:53:18 -0700 (PDT) Received: from ip68-14-62-49.no.no.cox.net (localhost [127.0.0.1]) by ip68-14-62-49.no.no.cox.net (8.12.3/8.12.3) with ESMTP id g59ErHYd066922; Sun, 9 Jun 2002 09:53:17 -0500 (CDT) (envelope-from conrads@ip68-14-62-49.no.no.cox.net) Received: (from conrads@localhost) by ip68-14-62-49.no.no.cox.net (8.12.3/8.12.3/Submit) id g59ErHaw066921; Sun, 9 Jun 2002 09:53:17 -0500 (CDT) (envelope-from conrads) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3.0.5.32.20020609092149.01044510@mail.sage-one.net> Date: Sun, 09 Jun 2002 09:53:17 -0500 (CDT) Reply-To: conrads@cox.net Organization: A Rag-Tag Band of Drug-crazed Hippies From: Conrad Sabatier To: "Jack L. Stone" Subject: Re: Running Diff of Directories Cc: freebsd-questions@FreeBSD.ORG 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 09-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....??? diff dir1 dir2 | grep '^Only in ' -- Conrad Sabatier "I'd rather have a bottle in front of me than a frontal lobotomy." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message