From owner-freebsd-questions@FreeBSD.ORG Sun Dec 23 12:53:44 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D96FBC38 for ; Sun, 23 Dec 2012 12:53:44 +0000 (UTC) (envelope-from ateve@sohara.org) Received: from uk1rly2283.eechost.net (relay01a.mail.uk1.eechost.net [217.69.40.75]) by mx1.freebsd.org (Postfix) with ESMTP id 922C48FC12 for ; Sun, 23 Dec 2012 12:53:44 +0000 (UTC) Received: from [31.186.37.179] (helo=smtp.marelmo.com) by uk1rly2283.eechost.net with esmtpa (Exim 4.72) (envelope-from ) id 1Tml4H-0006HB-0O for freebsd-questions@freebsd.org; Sun, 23 Dec 2012 12:54:13 +0000 Received: from [192.168.63.1] (helo=steve.marelmo.com) by smtp.marelmo.com with smtp (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1Tml3f-0009B2-Fz for freebsd-questions@freebsd.org; Sun, 23 Dec 2012 12:53:35 +0000 Date: Sun, 23 Dec 2012 12:53:27 +0000 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Subject: Re: shell script problem Message-Id: <20121223125327.bb4350ace7952b9ea3ee613d@sohara.org> In-Reply-To: <50D6D56E.8000401@FreeBSD.org> References: <1356253535.76738.YahooMailClassic@web160101.mail.bf1.yahoo.com> <20121223103434.def7cd9c.freebsd@edvax.de> <20121223104311.557f3752.freebsd@edvax.de> <50D6D56E.8000401@FreeBSD.org> X-Mailer: Sylpheed 3.2.0 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Auth-Info: 15567@permanet.ie (plain) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Dec 2012 12:53:44 -0000 On Sun, 23 Dec 2012 09:57:02 +0000 Matthew Seaman wrote: > Hmmm.... I'd just like to draw your attention to the comm(1) program, > which lets you find lines common to two files, or only in one or other > of a pair of inputs, very easily. The only slight gotcha is that the > input files have to be sorted. For which purpose the sort program is most useful. -- Steve O'Hara-Smith