From owner-freebsd-questions Sat Feb 8 21: 9: 6 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 6AFF137B401 for ; Sat, 8 Feb 2003 21:09:05 -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 E991B43F93 for ; Sat, 8 Feb 2003 21:09:03 -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 h1958vIl058232 for ; Sat, 8 Feb 2003 23:08:57 -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 h1958vLw055854 for ; Sat, 8 Feb 2003 23:08:57 -0600 (CST) (envelope-from djp@babylon.polands.org) Received: (from djp@localhost) by babylon.polands.org (8.12.6/8.12.6/Submit) id h1958u3N055853 for questions@freebsd.org; Sat, 8 Feb 2003 23:08:56 -0600 (CST) Date: Sat, 8 Feb 2003 23:08:56 -0600 From: Doug Poland To: questions@freebsd.org Subject: text processing, excluding common lines Message-ID: <20030209050856.GA55816@babylon.polands.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Hi, Anyone know a command-line tool (or tools piped together) that could achieve the following results. Given... % cat fileA line1 line2 line3 % cat fileB line2 line4 line5 % cat fileC line1 line4 line6 line7 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...) So my desired result would be: line6 line7 -- Regards, Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message