From owner-freebsd-questions Sat Feb 8 21:21:44 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 BD92937B401 for ; Sat, 8 Feb 2003 21:21:43 -0800 (PST) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD30643F85 for ; Sat, 8 Feb 2003 21:21:42 -0800 (PST) (envelope-from jonc@chen.org.nz) Received: from grimoire.chen.org.nz (localhost [127.0.0.1]) by chen.org.nz (8.12.6/8.12.6) with ESMTP id h195LX8X047003; Sun, 9 Feb 2003 18:21:36 +1300 (NZDT) (envelope-from jonc@grimoire.chen.org.nz) Received: (from jonc@localhost) by grimoire.chen.org.nz (8.12.6/8.12.6/Submit) id h195LXpA047002; Sun, 9 Feb 2003 18:21:33 +1300 (NZDT) (envelope-from jonc) Date: Sun, 9 Feb 2003 18:21:33 +1300 From: Jonathan Chen To: Doug Poland Cc: questions@FreeBSD.ORG Subject: Re: text processing, excluding common lines Message-ID: <20030209052133.GA46926@grimoire.chen.org.nz> References: <20030209050856.GA55816@babylon.polands.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030209050856.GA55816@babylon.polands.org> User-Agent: Mutt/1.4i 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:08:56PM -0600, Doug Poland wrote: [...] > I would like to see all the lines in fileC that are not in fileA or > fileB. In my case, I may be seraching against many files, i.e., > (A,B,C,etc...) > How about: cat fileA fileB | sort | comm -1 -3 - fileC -- Jonathan Chen ---------------------------------------------------------------------- Opportunities are seldom labeled To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message