From owner-freebsd-questions Tue Jun 27 23:26:15 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 72AE837B984 for ; Tue, 27 Jun 2000 23:26:12 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id BAA07728; Wed, 28 Jun 2000 01:26:04 -0500 (CDT) (envelope-from dan) Date: Wed, 28 Jun 2000 01:26:04 -0500 From: Dan Nelson To: Johannes.Effendi@redsheriff.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: recursive Directory Comparison Message-ID: <20000628012604.B4102@dan.emsphone.com> References: <395959F9.35D5C950@redsheriff.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.4i In-Reply-To: <395959F9.35D5C950@redsheriff.com>; from "Johannes Effendi" on Wed Jun 28 11:50:49 GMT 2000 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Jun 28), Johannes Effendi said: > I am currently working with 3.3-RELEASE FreeBSD on Intel PC. and > wonder whether there is a utility in FreeBSD or even perl scripts > that allows me to do files comparison recursively from the directory > level, and display which files are the same and which are not. On > HP-UX this command is available as 'dircmp'. "diff -r" is nice. If you only want to know if the files are different (and don't care about the changes themselves), "diff -r --brief". Also, I just checked, and dircmp on my DEC Unix box is just a shell script, and works just fine (modulo some "echo \t" tab-expansion problems) on my FreeBSD-current box. If your HP-UX dircmp is also a shell script, try copying it over and see if it works. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message