From owner-freebsd-questions Sun Feb 9 6:24:42 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B57637B6F5 for ; Sun, 9 Feb 2003 06:24:38 -0800 (PST) Received: from galilee.polands.org (new-24-208-57-240.new.rr.com [24.208.57.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7841143F75 for ; Sun, 9 Feb 2003 06:24:35 -0800 (PST) (envelope-from djp@polands.org) Received: from babylon.polands.org (babylon.polands.org [172.16.1.16]) by galilee.polands.org (8.12.6/8.12.6) with ESMTP id h19EOSIl061986; Sun, 9 Feb 2003 08:24:28 -0600 (CST) (envelope-from djp@galilee.polands.org) Received: from babylon.polands.org (localhost.polands.org [127.0.0.1]) by babylon.polands.org (8.12.6/8.12.6) with ESMTP id h19EORLw058337; Sun, 9 Feb 2003 08:24:27 -0600 (CST) (envelope-from djp@babylon.polands.org) Received: (from djp@localhost) by babylon.polands.org (8.12.6/8.12.6/Submit) id h19EORGM058336; Sun, 9 Feb 2003 08:24:27 -0600 (CST) Date: Sun, 9 Feb 2003 08:24:27 -0600 From: Doug Poland To: Dan Nelson Cc: questions@FreeBSD.ORG Subject: Re: text processing, excluding common lines Message-ID: <20030209142426.GA58317@babylon.polands.org> References: <20030209050856.GA55816@babylon.polands.org> <20030209052236.GE5356@dan.emsphone.com> <20030209052421.GF5356@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030209052421.GF5356@dan.emsphone.com> User-Agent: Mutt/1.3.27i 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 Sat, Feb 08, 2003 at 11:24:21PM -0600, Dan Nelson wrote: > In the last episode (Feb 08), Dan Nelson said: > > cat fileA fileB | sort | comm -13 - fileC > > Or to preempt someone marking this with a "useless use of cat" stamp: > > sort fileA fileB | comm -13 - fileC > Thank you to all that responded. The comm command was just what I was looking for. -- Regards, Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message