From owner-freebsd-questions Tue May 2 11:47:13 2000 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 6ABDF37B7F7 for ; Tue, 2 May 2000 11:47:08 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.12 #1) id 12mgDl-000CAo-00; Tue, 02 May 2000 18:12:29 +0100 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.12 #7) id 12mgDl-00040V-00; Tue, 02 May 2000 18:12:29 +0100 Date: Tue, 2 May 2000 18:12:29 +0100 From: Ben Smithurst To: David Daugherty Cc: questions@freebsd.org Subject: Re: opposite of diff Message-ID: <20000502181229.A79359@strontium.scientia.demon.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG David Daugherty wrote: > Is there a utility in the ports which will print the common lines between > two files? Kinda' like the opposite of diff. Try 'comm', from your description you'll probably want to use 'comm -12 first_file second_file'. And that's in the base system, not ports. -- Ben Smithurst / ben@scientia.demon.co.uk / PGP: 0x99392F7D To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message