Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 May 2000 18:12:29 +0100
From:      Ben Smithurst <ben@scientia.demon.co.uk>
To:        David Daugherty <doc@wcug.wwu.edu>
Cc:        questions@freebsd.org
Subject:   Re: opposite of diff
Message-ID:  <20000502181229.A79359@strontium.scientia.demon.co.uk>
In-Reply-To: <Pine.LNX.3.96.1000502083105.2062A-100000@sloth>
References:  <Pine.LNX.3.96.1000502083105.2062A-100000@sloth>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000502181229.A79359>